All Products
Search
Document Center

Resource Access Management:ListUsersInRecycleBin

Last Updated:Jul 24, 2025

Queries the basic information about all Resource Access Management (RAM) users in the recycle bin.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ram:ListUsersInRecycleBinlist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
MarkerstringNo

The marker. If part of a previous response is truncated, you can use this parameter to obtain the truncated part.

EXAMPLE
MaxItemsintegerNo

The number of entries to return. If a response is truncated because it reaches the value of MaxItems, the value of IsTruncated will be true.

Valid values: 1 to 100. Default value: 100.

100
FilterstringNo

The filter condition that is used to query information about a specified RAM user in the recycle bin.

You must specify this parameter in the UserPrincipalName eq <username>@<AccountAlias>.onaliyun.com format.

UserPrincipalName eq test@example.onaliyun.com

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

3687BD52-49FD-585B-AB14-CD05B7C76963
IsTruncatedboolean

Indicates whether the response is truncated. Valid values:

  • true
  • false
true
Markerstring

The parameter that is used to obtain the truncated part. It takes effect only when IsTruncated is set to true.

EXAMPLE
Usersarray<object>

The information about the RAM users.

Userobject

The information about the RAM user.

UserIdstring

The ID of the RAM user.

20732900249392****
UserPrincipalNamestring

The logon name of the RAM user.

test@example.onaliyun.com
DisplayNamestring

The display name of the RAM user.

test@example.onaliyun.com
CreateDatestring

The time when the RAM user was created.

2020-10-12T09:12:00Z
RecycleDatestring

The time when the RAM user was deleted and moved to the recycle bin.

2020-10-15T09:12:00Z
DeleteDatestring

The time when the RAM user will be permanently deleted from the recycle bin.

2020-11-15T09:12:00Z

Examples

Sample success responses

JSONformat

{
  "RequestId": "3687BD52-49FD-585B-AB14-CD05B7C76963",
  "IsTruncated": true,
  "Marker": "EXAMPLE",
  "Users": {
    "User": [
      {
        "UserId": "20732900249392****",
        "UserPrincipalName": "test@example.onaliyun.com",
        "DisplayName": "test@example.onaliyun.com",
        "CreateDate": "2020-10-12T09:12:00Z",
        "RecycleDate": "2020-10-15T09:12:00Z",
        "DeleteDate": "2020-11-15T09:12:00Z"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.