CannotChangePassword: Boolean;
The CannotChangePassword property determines whether the change of password is prohibited.
The property is set to False by default, and the user can change his own password. If the value is True, the exception condition will be generated when the password is tried to change.
Sub Main;
Var
MB: IMetabase;
User: IMetabaseUser;
Users: IMetabaseUsers;
MS: IMetabaseSecurity;
Begin
MB:=MetabaseClass.Active;
MS:=MB.Security;
Users:=MS.Users;
User:=Users.Item(0);
User.CannotChangePassword:=True;
MS.Apply;
End Sub Main;
After executing the example the password change prohibition is set for the first user.
See also: