aws.cognito_idp.list_users
Example SQL Queries
SELECT * FROMaws.cognito_idp.list_usersWHERE"user_pool_id" = 'VALUE';Description
Lists users and their basic details in a user pool.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Table Definition
| Column Name | Column Data Type |
|---|---|
| user_pool_id Required Input Column The user pool ID for the user pool on which the search should be performed. | VARCHAR |
| attributes_to_get Input Column A JSON array of user attribute names, for example given_name, that you want Amazon Cognito to include in the response for each user. When you don't provide an AttributesToGet parameter, Amazon Cognito returns all attributes for each user. Use AttributesToGet with required attributes in your user pool, or in conjunction with Filter. Amazon Cognito returns an error if not all users in the results have set a value for the attribute you request. Attributes that you can't filter on, including custom attributes, must have a value set in every user profile before an AttributesToGet parameter returns results. | VARCHAR[] |
Show child fields
| |
| filter Input Column A filter string of the form "AttributeName Filter-Type "AttributeValue"". Quotation marks within the filter string must be escaped using the backslash (\) character. For example, "family_name = \"Reddy\"".
If the filter string is empty, ListUsers returns all users in the user pool. You can only search for the following standard attributes:
Custom attributes aren't searchable. You can also list users with a client-side filter. The server-side filter matches no more than one attribute. For an advanced search, use a client-side filter with the --query parameter of the list-users action in the CLI. When you use a client-side filter, ListUsers returns a paginated list of zero or more users. You can receive multiple pages in a row with zero results. Repeat the query with each pagination token that is returned until you receive a null pagination token value, and then review the combined result. For more information about server-side and client-side filtering, see FilteringCLI output in the Command Line Interface User Guide. For more information, see Searching for Users Using the ListUsers API and Examples of Using the ListUsers API in the Amazon Cognito Developer Guide. | 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
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| attributes A container with information about the user type attributes. | STRUCT( |
Show child fields
| |
| enabled Specifies whether the user is enabled. | BOOLEAN |
| mfa_options The MFA options for the user. | STRUCT( |
Show child fields
| |
| user_create_date The creation date of the user. | TIMESTAMP_S |
| user_last_modified_date The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object. | TIMESTAMP_S |
| user_status The user status. This can be one of the following:
| VARCHAR |
| username The user name of the user you want to describe. | VARCHAR |