AllGroups: ISecuritySubjects;
The AllGroups property returns collection of all users groups, available in the current repository.
This collection includes all users groups, created in the current repository, as well as all domain users groups.
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: