ListUserGlobalGroups#

Description#

Returns the list of global groups that an IAM user belongs to.

Request Parameters#

  • UserName — The name of the user.

    • Type: String

    • Required: Yes

Response Elements#

  • Groups — The list of global groups that a user belongs to.

    • Type: List of Group objects

Examples#

Request

https://iam.k2.cloud/?Action=ListUserGlobalGroups
&UserName=user-1

Response

<ListUserGlobalGroupsResponse>
    <ListUserGlobalGroupsResult>
        <Groups>
            <member>
                <GroupArn>arn:c2:iam:::group/IAMAdministrators</GroupArn>
                <GroupId>53404888-aaec-4e6f-9e54-b3bc2bcd8d5a</GroupId>
                <GroupName>IAMAdministrators</GroupName>
                <Owner>provider</Owner>
                <Type>global</Type>
                <CreateDate>1716497399</CreateDate>
            </member>
        </Groups>
    </ListUserGlobalGroupsResult>
    <requestId>5f195a54-f7a9-4ac4-92d5-2e6b975b035f</requestId>
    <ResponseMetadata>
        <RequestId>5f195a54-f7a9-4ac4-92d5-2e6b975b035f</RequestId>
    </ResponseMetadata>
</ListUserGlobalGroupsResponse>
c2-iam ListUserGlobalGroups UserName user-1