Add(Value: IMetabaseUser);
Value. Repository user whom necessary to update.
The Add method adds a repository user in a list for updating.
To update users the MetabaseSecuritySubjectUpdateType.DBGrantCreate method will be used.
The IMetabaseSecuritySubjectUpdateSetup.UpdateType method is used to change the way of updating users.
To execute the example, add the Metabase system assembly to the module.
Sub UserProc;
Var
MB: IMetabase;
Sec: IMetabaseSecurity;
Users: IMetabaseUsers;
User: IMetabaseUser;
UsUpdate: IMetabaseUsersUpdate;
Begin
MB := MetabaseClass.Active;
Sec := MB.Security;
Users := Sec.Users;
UsUpdate := Sec.CreateUsersUpdate;
For Each User In Users Do
UsUpdate.Add(User);
End For;
Sec.UpdateUsers(UsUpdate);
End Sub UserProc;
After executing this example information about all users created in current repository is updated.
See also: