Changes the password that is used to log on to the Alibaba Cloud Management Console.

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.

Debugging

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 12****

The old password that is used to log on to the Alibaba Cloud Management Console.

NewPassword String Yes aw$2****

The new password that is used to log on to the Alibaba Cloud Management Console.

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

For more information about common request parameters, see Common parameters.

Response parameters

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

The ID of the request.

Examples

Sample requests

https://ram.aliyuncs.com/?Action=ChangePassword
&OldPassword=12****
&NewPassword=aw$2****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ChangePassword>
    <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</ChangePassword>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

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