update_password

To update a user’s password, use the following command:

Copied!
svc=user/update_password&params={"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

Copied!
{}	/* an empty object if the execution is successful; if not, an error code */

Error codes

Error codeDescription
7The user wasn't found, or the current user doesn't have rights to change the specified user, or the user's password is immutable.
6The password doesn't match security requirements, or failed to update the password, or the current user wasn't found.
Download PDF file
Download Word document

See also