Description
The password of an McUser cannot be retrieved, but may be assigned, if the old password can be provided and the user has sufficient access rights. This method allows the password of this McDBUser to be assigned in this manner.
-
Return Type
-
None
-
Syntax
-
object.SetPassword OldPassword, NewPassword
The SetPassword Method syntax has these parts: |
| object | An expression evaluating to an object of type McDBUser. | | OldPassword | Required. A String value. The current password of this McDBUser
| | NewPassword | Required. A String value. The password to assign to this McDBUser
| Remarks
McDBUser.SetPassword()
A McDBUser is always allowed to change their own password, provided they know their current password. Otherwise, only Administrators (McDBRightsOwner.IsAdministrator is True) can assign a password. In this case, the OldPassword is not needed.
Exceptions
|