ListUserProjects#

Description#

Returns the list of projects that the specified IAM user has access to.

Request Parameters#

  • UserName — The name of the user.

    • Type: String

    • Required: Yes

Response Elements#

  • Projects — The list of projects that the user has access to.

Examples#

Request

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

Response

<ListUserProjectsResponse>
    <ListUserProjectsResult>
        <Projects>
            <member>
                <ProjectArn>arn:c2:iam::c2dev:project/project-1</ProjectArn>
                <ProjectId>30ad3cc4-b68d-4882-8ad6-cf01ef1774c2</ProjectId>
                <ProjectName>project-1</ProjectName>
                <State>deleted</State>
                <DisplayName>project 111</DisplayName>
                <CreateDate>1724417128</CreateDate>
                <S3Email>project-1@c2dev</S3Email>
            </member>
        </Projects>
    </ListUserProjectsResult>
    <requestId>1789e3c7-c2ad-43e4-baf7-dab94190ff5e</requestId>
    <ResponseMetadata>
        <RequestId>1789e3c7-c2ad-43e4-baf7-dab94190ff5e</RequestId>
    </ResponseMetadata>
</ListUserProjectsResponse>
c2-iam ListUserProjects UserName user-1