AdmUserTitle(Locale: LocaleCodeID; Type: AdmUserType): String;
Locale. Identifier of language and regional parameters.
Type. It determines an administrator type.
The AdmUserTitle property determines a string to display in the security manager window title for the specified administrator type.
The Locale parameter cannot be equal to LocaleCodeID.None.
A string is nor formed (empty) by default. Only the user with a the Changing User Permissions, Distributing Roles, Changing Policy privilege can determine the string.
The string can be set for three user types:
Users who has the Changing Security Label and Access Control List of Any Object privilege.
Users who have the Creating and Deleting Users privilege.
Users who have both the Changing Security Label and Access Control List of Any Object and the Creating and Deleting Users privileges.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
Policy: IMetabasePolicy;
Lic: Object;
Begin
MB := MetabaseClass.Active;
// Check out license to work with security manager
Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
MS := MB.Security;
Policy := MS.Policy;
// Set string to display in security manager window title
Policy.AdmUserTitle(LocaleCodeID.Russian, AdmUserType.ISA) := "PM of information security administrator";
Policy.AdmUserTitle(LocaleCodeID.Russian, AdmUserType.Admin) := "PM of application administrator";
Policy.AdmUserTitle(LocaleCodeID.Russian, AdmUserType.ISA Or AdmUserType.Admin) := "PM of Administrator";
// Save changes
MS.Apply;
// Check in license
Lic := Null;
End Sub UserProc;
After executing the example an additional string depending on a privilege that the user has is displayed in the security manager window title.
See also: