0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

$ 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"
        }, 

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?