| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Lists the users that have the specified path prefix, or lists all the users in the
AWS account. If none exist, the action still succeeds. You can paginate the results using the MaxItems
and Marker options.
iam-userlistbypath [-p
PATH]
| Name | Description | Required |
|---|---|---|
|
|
The path prefix for filtering the results. For example,
Type: String Default: / Condition: Provide this option only if you want to list the users with a specific path prefix. |
Conditional |
|
|
Use this only when paginating results to indicate the maximum number of items you want
in the response. If there are additional items beyond the
maximum you specify, the Type: String Default: None |
No |
|
|
Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the Marker element in the response you just received. Type: String Default: None |
No |
The output lists the Amazon Resource Name (ARN) for each resulting user.
The following example lists all the users in the AWS account.
PROMPT> iam-userlistbypath
arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/Bob
arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/Susan
arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/John
arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/engineering/Andrew
arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/engineering/JackieThe following example lists all the users whose path starts with /division_abc/subdivision_xyz/.
PROMPT> iam-userlistbypath -p /division_abc/subdivision_xyz/
arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/Bob
arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/Susan
arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/John