Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




List Groups For User

POST ListGroupsForUser

Lists the IAM groups that the specified IAM user belongs to.


Query Parameters

UserNameSimple name identifying the user.
MarkerFor pagination, the value of the Marker element in the response that you received to indicate where the next call should start.
MaxItemsUse 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.

Required Roles

This call has no restrictions.


Request Payload

No Request Payload


Response Body

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

Examples

Request
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>
Response
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>