Cognito User Reader
This small utility will fetch all the users and emails from a Cognito User Pool of your choice and print a nice file for you.
Installation
You can compile it yourself:
or you can download the executable from GitHub releases and add it to your path.
Requirements
You need to have previously installed awscli.
Usage
Depending on how you have configured AWS
, you may need to use something similar to assume-role
before using cur
in order to access the data:
Then, just execute:
You will see a new cognito_users.csv
file in your working directory with all your user's emails.
If you want to learn more about the options of this cli
just execute cur -h
.
Options
-a
: Array of attributes that you want to get for your users. Email is always included.-p
: Prints the result to the terminal-s
: Shows also the unconfirmed users-i
: Array of user ids to be filtered-e
: Array of user emails to be filtered-n
: Inverts the userId filter-m
: Inverts the user email filter-x
: Max number of users to retrieve-c
: Only shows users created from this date