ListUserProjectGroups#

Description#

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

Request Parameters#

  • ProjectName — The name of the project.

    • Type: String

    • Required: Yes

  • UserName — The name of the user.

    • Type: String

    • Required: Yes

Response Elements#

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

    • Type: List of Group objects

Examples#

Request

https://iam.k2.cloud/?Action=ListUserProjectGroups
&UserName=user-1
&ProjectName=project-1

Response

<ListUserProjectGroupsResponse>
    <ListUserProjectGroupsResult>
        <Groups>
            <member>
                <GroupArn>arn:c2:iam:::group/CloudAdministrators</GroupArn>
                <GroupId>ea1140b5-72d5-4aa3-9d1e-83621250a542</GroupId>
                <GroupName>CloudAdministrators</GroupName>
                <Owner>provider</Owner>
                <Type>project</Type>
                <CreateDate>1716497399</CreateDate>
            </member>
        </Groups>
    </ListUserProjectGroupsResult>
    <requestId>981635c5-3a9f-4e24-8e16-165950172482</requestId>
    <ResponseMetadata>
        <RequestId>981635c5-3a9f-4e24-8e16-165950172482</RequestId>
    </ResponseMetadata>
</ListUserProjectGroupsResponse>
c2-iam ListUserProjectGroups UserName user-1 ProjectName project-1