Resets the password for one or more convenience users. If you call this operation, a token that is used to reset the password is generated, and a password reset email that includes the token is sent to the mailbox of the convenience user.

Description

After this operation is called, the convenience user receives a password reset email sent by the system. Then, the convenience user can reset the password by using the link in the email.

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 ResetUserPassword

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

Users.N RepeatList Yes test1

The usernames of convenience users whose password need to be reset. You can specify multiple users in the list.

Response parameters

Parameter Type Example Description
RequestId String 32D05B39-E6EE-4D7A-9FD0-762A26859D0D

The ID of the request.

ResetUsersResult Struct

The result of the operation.

FailedUsers Array of failedUsers

The information about the convenience users whose passwords failed to be reset.

EndUserId String test123

The convenience user whose password failed to be reset.

ErrorCode String InvalidUsername

The error code.

ErrorMessage String test123 is invalid username

The error message.

ResetUsers List test1

The convenient users to which the system sent a password reset email.

Examples

Sample requests

https://eds-user.cn-shanghai.aliyuncs.com/?Action=ResetUserPassword
&Users.1=test1
&<Common request parameters>

Sample success responses

XML format

<ResetUserPasswordResponse>
      <RequestId>32D05B39-E6EE-4D7A-9FD0-762A26859D0D</RequestId>
      <ResetUsersResult>
            <ResetUsers>test1</ResetUsers>
      </ResetUsersResult>
</ResetUserPasswordResponse>

JSON format

{
    "RequestId": "32D05B39-E6EE-4D7A-9FD0-762A26859D0D",
    "ResetUsersResult": {
        "ResetUsers": [
            "test1"
        ],
        "FailedUsers": []
    }
}