Queries RAM users in a RAM user group.

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 ListUsersForGroup

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

GroupName String Yes Dev-Team

The name of the RAM user group.

Marker String No EXAMPLE

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

MaxItems Integer No 100

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 1000. Default value: 100.

Response parameters

Parameter Type Example Description
IsTruncated Boolean true

Indicates whether the response is truncated.

Marker String EXAMPLE

The marker. This parameter is returned only if the value of IsTruncated is true. If the value of IsTruncated is true, you can call this operation again and set marker to obtain the truncated part.

RequestId String 4B450CA1-36E8-4AA2-8461-86B42BF4CC4E

The ID of the request.

Users Array

The list of the RAM users.

User

The information of a RAM user.

DisplayName String ZhangQiang

The display name of the RAM user.

JoinDate String 2015-01-23T12:33:18Z

The time when the RAM user joined the RAM user group.

UserName String zhangqiang

The name of the RAM user.

Examples

Sample requests


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

Sample success responses

XML format

<RequestId>4B450CA1-36E8-4AA2-8461-86B42BF4CC4E</RequestId>
<Users>
    <User>
        <UserName>zhangqiang</UserName>
        <DisplayName>ZhangQiang</DisplayName>
        <JoinDate>2015-01-23T12:33:18Z</JoinDate>
    </User>
    <User>
        <UserName>lili</UserName>
        <DisplayName>LiLi</DisplayName>
        <JoinDate>2015-02-18T17:22:08Z</JoinDate>
    </User>
</Users>

JSON format

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

Error codes

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