update_password
To update a user’s password, use the following command:
svc=user/update_password¶ms={"userId":<long>,
"oldPassword":<text>,
"newPassword":<text>}
Parameters
The required parameters are marked with an asterisk (*).
Name | Description |
---|---|
userId* | User ID. |
oldPassword* | Old password. |
newPassword* | New password. |
Response
{} /* an empty object if the execution is successful; if not, an error code */
Error codes
Error code | Description |
---|---|
7 | The user wasn't found, or the current user doesn't have rights to change the specified user, or the user's password is immutable. |
6 | The password doesn't match security requirements, or failed to update the password, or the current user wasn't found. |