IMetabaseSecurity.CreateUsersUpdate

Syntax

CreateUsersUpdate: IMetabaseUsersUpdate;

Description

The CreateUsersUpdate method creates a collection for updating users.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Users: IMetabaseUsers;
    User: IMetabaseUser;
    UsUpdate: IMetabaseUsersUpdate;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    
// Update information about users
    Users := MS.Users;
    UsUpdate := MS.CreateUsersUpdate;
    
For Each User In Users Do
        UsUpdate.Add(User);
    
End For;
    MS.UpdateUsers(UsUpdate);
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example information about all users in current repository is updated.

See also:

IMetabaseSecurity