External: Boolean;
The External property determines whether the new user that is connected from the server is created.
This property is available for changing only when a new user is created in the repository. This property is relevant if any user has already been created at the server, and this user must be included in the list of security subjects of Foresight Analytics Platform.
The actual presence of the user on the server is not checked when the user that is connected from the server, is created.
This checkbox will also be used by the users created on working of the BI server, if the authorization using credentials of different social systems is used: Twitter, LinkedIn, Facebook, LiveJournal. Temporary users are created, which exist as separate records in the system table of the repository. Physical users of the DBMS are not created. For authorization under such users there must be the individual user of the repository which will be used for impersonation. It requires credentials saved on the BI server.
Executing the example requires the TestUser user created on the server.
Sub Main;
Var
MB: IMetabase;
Sec: IMetabaseSecurity;
User: IMetabaseUser;
Begin
MB := MetabaseClass.Active;
Sec := MB.Security;
User := Sec.AddUser("TestUser");
User.FullName := "A test user";
Sec.Policy.Privilege("ENTER").Grant(User);
Sec.Policy.Privilege("READING").Grant(User);
User.External := True;
Sec.Apply;
End Sub Main;
After executing the example in the platform a new user, connected from the server will be created. Two privileges will be created for the user: the privilege for logging in the platform and the privilege for reading and opening objects.
See also: