Lists the IAM groups that the specified IAM user belongs to.
UserName | Simple name identifying the user. |
Marker | For pagination, the value of the Marker element in the response that you received to indicate where the next call should start. |
MaxItems | Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true and Marker contains a value to include in the subsequent call that tells the service where to continue from. |
This call has no restrictions.
No Request Payload
Field | Description | Type | Notes |
ListGroupsForUserResponse | |||
Result | |||
Groups | Get groups |
0-* Elements |
|
IsTruncated | A flag that indicates whether there are more items to return. | Boolean | |
Marker | When isTruncated is true, this element needs to be sent in the Marker parameter for subsequent pagination requests. | String | |
ResponseMetadata | |||
RequestId | String |
POST https://192.168.0.0:4443/iam?UserName=tt1&Action=ListGroupsForUser Accept: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN> x-emc-namespace: <namespace>
HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns2:ListGroupsForUserResponse xmlns:ns2="none"> <ResponseMetadata> <RequestId>0af9f5b8:17178fe9282:9232:0</RequestId> </ResponseMetadata> <ListGroupsForUserResult> <Groups> <member> <Arn>urn:ecs:iam::ns:group/FinanceGroup</Arn> <GroupId>AGPA11B2858814F35CA0</GroupId> <GroupName>FinanceGroup</GroupName> <Path>/</Path> </member> </Groups> <IsTruncated>false</IsTruncated> </ListGroupsForUserResult> </ns2:ListGroupsForUserResponse>