aws.iam.list_users
Example SQL Queries
SELECT * FROMaws.iam.list_users;Description
Lists the IAM users that have the specified path prefix. If no path prefix is specified, the operation returns all users in the Amazon Web Services account. If there are none, the operation returns an empty list.
IAM resource-listing operations return a subset of the available attributes for the resource. This operation does not return the following attributes, even though they are an attribute of the returned object:
PermissionsBoundary
Tags
To view all of the information for a user, see GetUser.
You can paginate the results using the MaxItems and Marker parameters.
Table Definition
| Column Name | Column Data Type |
|---|---|
| path_prefix Input Column The path prefix for filtering the results. For example: /division_abc/subdivision_xyz/, which would get all user names whose path starts with /division_abc/subdivision_xyz/. This parameter is optional. If it is not included, it defaults to a slash (/), listing all user names. This parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (\u0021) through the DEL character (\u007F), including most punctuation characters, digits, and upper and lowercased letters. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| arn The Amazon Resource Name (ARN) that identifies the user. For more information about ARNs and how to use ARNs in policies, see IAM Identifiers in the IAM User Guide. | VARCHAR |
| create_date The date and time, in ISO 8601 date-time format, when the user was created. | TIMESTAMP_S |
| password_last_used The date and time, in ISO 8601 date-time format, when the user's password was last used to sign in to an Amazon Web Services website. For a list of Amazon Web Services websites that capture a user's last sign-in time, see the Credential reports topic in the IAM User Guide. If a password is used more than once in a five-minute span, only the first use is returned in this field. If the field is null (no value), then it indicates that they never signed in with a password. This can be because:
A null value does not mean that the user never had a password. Also, if the user does not currently have a password but had one in the past, then this field contains the date and time the most recent password was used. This value is returned only in the GetUser and ListUsers operations. | TIMESTAMP_S |
| path The path to the user. For more information about paths, see IAM identifiers in the IAM User Guide. The ARN of the policy used to set the permissions boundary for the user. | VARCHAR |
| permissions_boundary For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide. | STRUCT( |
Show child fields
| |
| tags A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide. | STRUCT( |
Show child fields
| |
| user_id The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the IAM User Guide. | VARCHAR |
| user_name The friendly name identifying the user. | VARCHAR |