IMetabaseSecurity.Users

Syntax

Users: IMetabaseUsers;

Description

The Users property returns collection of the users, created in the current repository.

Comments

This collection includes all users created in the repository security manager. Descriptions of these users are loaded on logging in the repository. Also, if the repository has users with the attribute of the deferred loading of the description, after their descriptions are loaded they are available in the Users collection.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

Users: IMetabaseUsers;

User: IMetabaseUser;

Begin

MB := MetabaseClass.Active;

MS := MB.Security;

Users := MS.Users;

For Each User In Users Do

Debug.WriteLine(User.Name);

End For;

End Sub Main;

After executing the example names of all users, created in the current repository, are displayed in the development environment console.

See also:

IMetabaseSecurity