ListUserProjectPolicies
In this article:
ListUserProjectPolicies#
Description#
Returns the list of project policies attached to an IAM user.
Request Parameters#
ProjectName — The name of the project.
Type: String
Required: Yes
UserName — The name of the user.
Type: String
Required: Yes
Response Elements#
Policies — The list of project policies attached to a user.
Type: List of Policy objects
Examples#
Request
https://iam.k2.cloud/?Action=ListUserProjectPolicies
&UserName=user-1
&ProjectName=project-1
Response
<ListUserProjectPoliciesResponse>
<ListUserProjectPoliciesResult>
<Policies>
<member>
<PolicyArn>arn:c2:iam:::policy/EC2FullAccess</PolicyArn>
<PolicyId>6592d1b6-c17e-4c00-b696-b1258cfaccba</PolicyId>
<PolicyName>EC2FullAccess</PolicyName>
<Owner>provider</Owner>
<Type>project</Type>
<CreateDate>1716497399</CreateDate>
<UpdateDate>1723755663</UpdateDate>
<Description>Provides full access to EC2 service.</Description>
</member>
</Policies>
</ListUserProjectPoliciesResult>
<requestId>1fdca011-a243-42e6-9ca1-0a9a2097f75d</requestId>
<ResponseMetadata>
<RequestId>1fdca011-a243-42e6-9ca1-0a9a2097f75d</RequestId>
</ResponseMetadata>
</ListUserProjectPoliciesResponse>
c2-iam ListUserProjectPolicies UserName user-1 ProjectName project-1