Lists information about the RAM user groups to which a RAM user is added.


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

Request parameters

Parameter Type Required? Example value Description
Action String Yes ListGroupsForUser

The name of this action.

Value: ListGroupsForUser

UserName String Yes Alice The username of the RAM user.

Response parameters

Parameter Type Example value Description
Groups N/A N/A The information about the RAM user groups.
Comments String Development team The comment.
GroupName String Dev-Team The RAM user group name.
JoinDate String 2015-01-23T12:33:18Z The date and time when the user joined a user group.
RequestId String 0945BF6F-54A4-C384-C89C-C500DCEE367C The request ID.


Request example
&<Common parameters>

Response example

XML format

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

JSON format

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


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