#cli #aws #cognito

app cognito-user-reader

Utility to retrieve all users in a specific AWS user pool

11 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

new 0.4.0 Feb 13, 2020
0.3.0 Feb 12, 2020
0.2.0 Sep 8, 2019
0.1.7 Sep 8, 2019

#37 in HTTP server

Download history 18/week @ 2019-11-01 1/week @ 2019-11-08 19/week @ 2019-11-15 9/week @ 2019-11-22 18/week @ 2019-11-29 136/week @ 2019-12-06 9/week @ 2019-12-27 1/week @ 2020-01-03 46/week @ 2020-01-10 36/week @ 2020-01-17 23/week @ 2020-02-07

99 downloads per month

MIT license

272 lines

Cognito User Reader

ActionsStatus Crates.io

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.


You can compile it yourself:

cargo install cognito-user-reader

or you can download the executable from GitHub releases and add it to your path.


You need to have previously installed awscli.

pip install awscli


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:

assume-role your-env

Then, just execute:

cur <pool_id> [-r eu-west-1] [-p] [-s] [-i "id1" "id2"] [-e "a@email.com" "b@email.com"] [-n] [-m] [-x]

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.


  • -r: AWS region
  • -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


~106K SLoC