Modifies one or more user 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 ModifyUserPasswords

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

ClusterId String Yes ehpc-hz-FYUr32****

The ID of the cluster.

You can call the ListClusters operation to query the cluster ID.

User.N.Name String No user1

The name of the user whose password you want to modify. Valid values of N: 1 to 100

You can call the ListUsers operation to query the users of the cluster.

User.N.Password String No 1@a****

The password of the user. It must be 8 to 30 characters in length and contain three of the following items:

  • Uppercase letter
  • Lowercase letter
  • Digit
  • Special character: ()~!@#$%^&*-_+=|{}[]:;'/<>,.?/

Valid values of N: 1 to 100

Note We recommend that you use HTTPS to call the AddUsers operation to ensure that the password remains confidential.

Response parameters

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

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****"

Error codes

HttpCode Error code Error message Description
406 AgentError.Account.DomainNotExist Specific domain not exists: %s The error message returned because the following domain does not exist: {}.
406 AgentError.Account.GetentPasswdFailure Failed to get the user list: %s The error message returned because the list of domain users {} has failed to be obtained.
406 AgentError.Account.UserChangePasswordFailure Failed to modify user passwords in domain: %s The error message returned because the password has failed to be modified.
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The service is temporarily unavailable.

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