Skip to content

Instantly share code, notes, and snippets.

@chrisdiana
Last active March 18, 2024 09:38
Show Gist options
  • Save chrisdiana/cc7464d0624885dace587b08ced052e4 to your computer and use it in GitHub Desktop.
Save chrisdiana/cc7464d0624885dace587b08ced052e4 to your computer and use it in GitHub Desktop.
Export AWS Cognito User Pool
# Export as Text Table
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --output table > ~/users.txt
# Export as JSON
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --output json > ~/users.json
# Export User Pool with more than 60 users (pagination)
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --pagination-token INCREDIBLYLONGSTRINGHERE --output json > ~/users-2.json
@sprobst
Copy link

sprobst commented Sep 29, 2020

Also, the limit of 60 users seems to be gone. I exported 171 moments ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment