aws.cognito_idp.get_user
Example SQL Queries
SELECT * FROMaws.cognito_idp.get_userWHERE"access_token" = 'VALUE';Description
Gets the user attributes and metadata for a user.
Authorize this action with a signed-in user's access token. It must include the scope aws.cognito.signin.user.admin.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito user pools API and user pool endpoints.
Table Definition
| Column Name | Column Data Type |
|---|---|
| access_token Required Input Column A non-expired access token for the user whose information you want to query. | 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 |
| mfa_options This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead. | STRUCT( |
Show child fields
| |
| preferred_mfa_setting The user's preferred MFA setting. | VARCHAR |
| user_attributes An array of name-value pairs representing user attributes. For custom attributes, you must prepend the custom: prefix to the attribute name. | STRUCT( |
Show child fields
| |
| user_mfa_setting_list The MFA options that are activated for the user. The possible values in this list are SMS_MFA and SOFTWARE_TOKEN_MFA. | VARCHAR[] |
Show child fields
| |
| username The username of the user that you requested. | VARCHAR |