Queries the RAM user groups that a RAM user has joined.


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 ListGroupsForUser

The operation that you want to perform. Set the valid value to ListGroupsForUser.

UserName String Yes zhangq****

The name of the RAM user.

Response parameters

Parameter Type Example Description
Groups Array

The list of the RAM user groups.


The information of a RAM user group.

Comments String Development team

The description of the RAM user group.

GroupName String Dev-Team

The name of the RAM user group.

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

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

RequestId String 0945BF6F-54A4-C384-C89C-C500DCEE367C

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format

        <Comments>Development team</Comments>
        <Comments>Test team</Comments>

JSON format

				"Comments":"Development team",
				"Comments":"Test team",

Error codes