cognito-user-reader 0.1.2

Utility to retrieve all users in a specific AWS user pool
cognito-user-reader-0.1.2 is not a library.
Visit the last successful build: cognito-user-reader-1.0.3

Cognito User Reader

Build Status 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.

Installation

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.

Requirements

You need to have previously uninstalled awscli.

pip install awscli

Usage

First of all, you have to use assume-role in order to access aws:

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]

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

  • -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