ListUserGlobalPolicies
In this article:
ListUserGlobalPolicies#
Description#
Returns the list of global policies attached to an IAM user.
Request Parameters#
UserName — The name of the user.
Type: String
Required: Yes
Response Elements#
Policies — The list of global policies attached to a user.
Type: List of Policy objects
Examples#
Request
https://iam.k2.cloud/?Action=ListUserGlobalPolicies
&UserName=user-1
Response
<ListUserGlobalPoliciesResponse>
<ListUserGlobalPoliciesResult>
<Policies>
<member>
<PolicyArn>arn:c2:iam:::policy/IAMFullAccess</PolicyArn>
<PolicyId>4e0b15b8-05bd-4f68-be2d-b87cc695cf9e</PolicyId>
<PolicyName>IAMFullAccess</PolicyName>
<Owner>provider</Owner>
<Type>global</Type>
<CreateDate>1716497399</CreateDate>
<UpdateDate>1723755663</UpdateDate>
<Description>Provides full access to IAM service.</Description>
</member>
</Policies>
</ListUserGlobalPoliciesResult>
<requestId>e8c8b1fd-6804-4565-a119-38e90fce0744</requestId>
<ResponseMetadata>
<RequestId>e8c8b1fd-6804-4565-a119-38e90fce0744</RequestId>
</ResponseMetadata>
</ListUserGlobalPoliciesResponse>
c2-iam ListUserGlobalPolicies UserName user-1