IMetabaseSecurity.ActiveUsers

Syntax

ActiveUsers: IMetabaseUsers;

Description

The ActiveUsers method returns the collection of users created in the current repository considering users with the lazy loading of descriptions.

Comments

On logging in the repository the descriptions of the users created in the security manager are loaded. Their descriptions can be obtained in the Users property. The ActiveUsers method gets all users of the repository: users added in the security manager and users, created in the DBMS, added to the repository and having the attribute of the lazy loading of description.

NOTE. The method returns only users with the lazy loading of description who are also the DBMS users.

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    Sec: IMetabaseSecurity;
    Users: IMetabaseUsers;
    User: IMetabaseUser;
Begin
    MB := MetabaseClass.Active;
    Sec := MB.Security;
    Users := Sec.ActiveUsers;
    
For Each User In Users Do
        Debug.WriteLine(User.Name + 
": " + User.IsDeferred.ToString);
    
End For;
End Sub UserProc;

After executing the example, the console displays a list of repository users. The list contains all users available in the security manager and users satisfying the conditions:

See also:

IMetabaseSecurity