Changes the password that is used to log on to the console for a Resource Access Management (RAM) user.

Note This operation is available only for RAM users. Before you call this operation, make sure that AllowUserToChangePassword in SetSecurityPreference is set to True. The value True indicates that RAM users can change their passwords.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ChangePassword

The operation that you want to perform. Set the value to ChangePassword.

OldPassword String Yes mypassword

The old password that is used to log on to the console.

NewPassword String Yes newpassword

The new password that is used to log on to the console.

The password must meet the complexity requirements. For more information, see GetPasswordPolicy.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK

<?xml version="1.0" encoding="UTF-8" ?>

JSON format

HTTP/1.1 200 OK

  "RequestId" : "04F0F334-1335-436C-A1D7-6C044FE73368"

Error codes

For a list of error codes, visit the API Error Center.