IMetabaseSecurity.AllGroups

Syntax

AllGroups: ISecuritySubjects;

Description

The AllGroups property returns collection of all users groups, available in the current repository.

Comments

This collection includes all users groups, created in the current repository, as well as all domain users groups.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

Groups: ISecuritySubjects;

Group: ISecuritySubject;

Begin

MB := MetabaseClass.Active;

MS := MB.Security;

Groups := MS.AllGroups;

For Each Group In Groups Do

Debug.WriteLine(Group.Name);

End For;

End Sub Main;

After executing the example names of all users groups that are available in the current repository are displayed in a development environment console.

See also:

IMetabaseSecurity