Lists the RAM users in a RAM user group.

Debug

Use API Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes ListUsersForGroup

The name of this action.

Value: ListUsersForGroup

GroupName String Yes Dev-Team The RAM user group name.
Marker String No EXAMPLE The marker. If part of a response is intercepted, you can use this parameter to obtain the intercepted content.
MaxItems Integer No 100

The number of permitted response items. If a response is intercepted when it reaches the maximum value of this parameter, the value of IsTruncated is true.

Value range: 1 to 1,000

Default value: 100

Response parameters

Parameter Type Example value Description
IsTruncated Boolean true Indicates whether a response is intercepted.
Marker String EXAMPLE This parameter is available only when the value of IsTruncated is true. In which case, you can call this action and use the specific marker to obtain the intercepted content.
RequestId String 4B450CA1-36E8-4AA2-8461-86B42BF4CC4E The request ID.
Users N/A N/A The information about the RAM users.
DisplayName String Alice The display name of a RAM user.
JoinDate String 2015-01-23T12:33:18Z The date and time when a user joined the RAM user group.
UserName String Alice The username of a RAM user.

Example

Request example

https://ram.aliyuncs.com/?Action=ListUsersForGroup
&GroupName=dev
&<Common parameters>

Response example

XML format

<ListUsersForGroupResponse>
  <RequestId>5756784B-79C4-E82E-24C2-FC3E171E5AB3</RequestId>
  <Users>
    <User>
      <UserName>Alice</UserName>
      <DisplayName>Alice</DisplayName>
      <JoinDate>2015-01-23T12:33:18Z</JoinDate>
    </User>
    <User>
      <UserName>Bob</UserName>
      <DisplayName>Bob</DisplayName>
      <JoinDate>2015-02-18T17:22:08Z</JoinDate>
    </User>
  </Users>
</ListUsersForGroupResponse>

JSON format

{
    "Users":{
        "User":[
            {
                "JoinDate":"2015-01-23T12:33:18Z",
                "UserName":"Alice",
                "DisplayName":"Alice"
            },
            {
                "JoinDate":"2015-02-18T17:22:08Z",
                "UserName":"Bob",
                "DisplayName":"Bob"
            }
        ]
    },
    "RequestId":"4B450CA1-36E8-4AA2-8461-86B42BF4CC4E"
}

Errors

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