Lists the names of the policies associated with the specified user. If there are none, the action returns an empty list.
You can paginate the results using the MaxItems
and Marker
parameters.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the user to list policies for. [Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
List all user policies.
// Instantiate the class $iam = new AmazonIAM(); $response = $iam->list_user_policies('johndoe2'); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub