Deletes one or more convenience users.

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 RemoveUsers

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

Users.N RepeatList  No test1

The usernames of convenience users to be deleted. You can specify multiple usernames in the list.

Response parameters

Parameter Type Example Description
RemoveUsersResult Struct

The result of the operation.

FailedUsers Array of failedUsers

The information about the convenience users that failed to be deleted.

EndUserId String test2

The convenience user that failed to be removed.

ErrorCode String InvalidUsername

The error code.

ErrorMessage String test2 is invalid username

The error message.

RemovedUsers List test1

The convenience users that were removed.

RequestId String 45341120-2560-4087-8359-B936E58DDB90

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<RemoveUsersResponse>
      <RequestId>45341120-2560-4087-8359-B936E58DDB90</RequestId>
      <RemoveUsersResult>
            <FailedUsers>
                  <EndUserId>test2</EndUserId>
                  <ErrorCode>InvalidUsername</ErrorCode>
                  <ErrorMessage>test2 is invalid username</ErrorMessage>
            </FailedUsers>
            <RemovedUsers>test1</RemovedUsers>
      </RemoveUsersResult>
</RemoveUsersResponse>

JSON format

{
    "RequestId": "45341120-2560-4087-8359-B936E58DDB90",
    "RemoveUsersResult": {
        "FailedUsers": [
            {
                "EndUserId": "test2",
                "ErrorCode": "InvalidUsername",
                "ErrorMessage": "test2 is invalid username"
            }
        ],
        "RemovedUsers": [
            "test1"
        ]
    }
}