IMetabaseUser.PasswordChangedUser

Syntax

PasswordChangedUser: IMetabaseUser;

Description

The PasswordChangedUser property returns the name of the user who requested the password change.

Comments

The password change can be requested by the user who has the Changing User Permissions, Distributing Roles, Changing Policy privilege.

Example

To execute the example, make sure that security manager contains the USER user.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    User, ChangedUser: IMetabaseUser;
Begin
    MB := MetabaseClass.Active;
    MS := MB.Security;
    User := MS.ResolveName(
"USER"As IMetabaseUser;
    ChangedUser := User.PasswordChangedUser;
    
If ChangedUser = Null Then
        Debug.WriteLine(
"Password change was not required");
    
Else
        Debug.WriteLine(
"Password change was requested by the user " + ChangedUser.Name);
    
End If;
End Sub UserProc;

After executing the example the console displays the result of password change request.

See also:

IMetabaseUser