get specified user by email cognito Cognito
aws cognito-idp admin-get-user --user-pool-id us-east-2_eeMGPsAAA --username [email protected]
{
"Username": "38660627-e5f1-43cf-b674-3df3369604b3",
"UserAttributes": [
{
"Name": "sub",
"Value": "38660627-e5f1-43cf-b674-3df3369604b3"
},
{
"Name": "email_verified",
"Value": "true"
},
{
"Name": "name",
"Value": "[email protected]"
},
{
"Name": "phone_number_verified",
"Value": "false"
},
{
"Name": "phone_number",
"Value": "+12135621930"
},
{
"Name": "email",
"Value": "[email protected]"
},
{
"Name": "custom:PersonID",
"Value": "92221"
}
],
"UserCreateDate": "2022-07-04T08:44:57.058000+07:00",
"UserLastModifiedDate": "2022-07-04T09:11:14.890000+07:00",
"Enabled": true,
"UserStatus": "CONFIRMED",
"PreferredMfaSetting": "SMS_MFA",
"UserMFASettingList": [
"SMS_MFA"
]
}
us-east-2_eeMGPsAAA is COGNITO_USER_POOL_ID and [email protected] is registered email.