ListUserPolicies
Lists the names of the inline policies that are embedded in the specified IAM user.
Request Parameters
For information about the parameters that are common to all actions, See Common Parameters.
UserName
The name of the user to list policies for.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern: [\w+=,.@-]+
Required: Yes
Response Elements
The following element is returned by server.
PolicyNames.member.N
A list of policy names.
Type: Array of strings
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern: [\w+=,.@-]+
IsTruncated
A flag that indicates whether there are more items to return.
Type: Boolean
Errors
For information about the errors that are common to all actions, See Common Error Codes.
NoSuchEntity
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
HTTP Status Code: 404
ServiceFailure
The request processing has failed because of an unknown error, exception, or failure.
HTTP Status Code: 500
Examples
Sample Request:
https://msdps3.veritas.com:8443/?Action=ListUserPolicies &UserName=User1 &AUTHPARAMS
Sample Response:
<?xml version="1.0" encoding="UTF-8"?>
<ListUserPoliciesResponse
xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<ResponseMetadata>
<RequestId>1648441729868934088</RequestId>
</ResponseMetadata>
<ListUserPoliciesResult>
<PolicyNames>
<member>ExamplePolicy</member>
</PolicyNames>
<IsTruncated>false</IsTruncated>
</ListUserPoliciesResult>
</ListUserPoliciesResponse>