Queries the IDs of all RAM users or RAM roles to which a Role-based Access Control (RBAC) role is assigned.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeUsersWithPermissions |
The operation that you want to perform. Set the value to DescribeUsersWithPermissions. |
| UserType | String | Yes | SubUser |
Specifies whether to query the IDs of all RAM users or RAM roles to which an RBAC role is assigned. Valid values:
|
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 12B94024-C241-13CD-BA44-6106DF1**** |
The ID of the request. |
| UIDs | Array of String | 2940213405997**** |
The IDs of the RAM users or RAM roles to which an RBAC role is assigned. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeUsersWithPermissions
&UserType=SubUser
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeUsersWithPermissionsResponse>
<RequestId>12B94024-C241-13CD-BA44-6106DF1*****</RequestId>
<UIDs>2940213405997*****</UIDs>
</DescribeUsersWithPermissionsResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "12B94024-C241-13CD-BA44-6106DF1*****",
"UIDs" : "2940213405997*****"
}
Error codes
For a list of error codes, visit the API Error Center.