Cognito User Poolsでユーザーを取得する
1138 ワード
$ aws cognito-idp admin-get-user --user-pool-id COGNITO_USER_POOLS_ID --username USERNAME
でいけます。
User does not exist
が返ってきたらユーザーは存在しない(or退会済)です。
$ aws cognito-idp admin-get-user --user-pool-id COGNITO_USER_POOLS_ID --username USERNAME
An error occurred (UserNotFoundException) when calling the AdminGetUser operation: User does not exist.
成功したらこんな感じ。
$ aws cognito-idp admin-get-user --user-pool-id COGNITO_USER_POOLS_ID --username hideokamoto
{
"Username": "hideokamoto",
"MFAOptions": [
{
"DeliveryMedium": "SMS",
"AttributeName": "phone_number"
}
],
"Enabled": true,
"UserStatus": "CONFIRMED",
"PreferredMfaSetting": "SMS_MFA",
"UserCreateDate": 1484806199.008,
"UserAttributes": [
{
"Name": "sub",
"Value": "b3e56722-c100-4fec-9d0d-a1311481a0f0"
},
Author And Source
この問題について(Cognito User Poolsでユーザーを取得する), 我々は、より多くの情報をここで見つけました https://qiita.com/motchi0214/items/bb9314e232a30f5bed3a著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .