Profiles: IUserProfiles;
The Profiles property returns the collection of profiles of the repository users.
This collection will contain profiles of all users created in the security manager of the current repository. Each profile contains the information about e-mail addresses, corresponding to the user and additional properties of the user.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
Mb: IMetabase;
Profs: IUserProfiles;
Prof: IUserProfile;
Begin
Mb := MetabaseClass.Active;
Profs := Mb.Profiles;
For Each Prof In Profs Do
Debug.WriteLine(Profile: + Prof.Name);
Debug.WriteLine(Default Email: " + Prof.Email);
End For;
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
Mb: IMetabase;
Profs: IUserProfiles;
Prof: IUserProfile;
Begin
Mb := Params.Metabase;
Profs := Mb.Profiles;
For Each Prof In Profs Do
Debug.WriteLine(Profile: + Prof.Name);
Debug.WriteLine(Default Email: " + Prof.Email);
End For;
End Sub;
On executing the example the names of user profiles and email addresses, set in each profile by default will be displayed in the development environment console.
See also: