Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify get_users to return all users in the user pool instead of just the first 60 #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jmking
Copy link

@jmking jmking commented Aug 18, 2018

get_users currently advertises that it returns all users but in fact it only returns the first 60 due to the fact that client.list_users paginates after a limit of 60 users. I've changed it to pull all the users using the page token.

This seems reasonable to me but given this list could be large, it may be worth passing the page token back to the caller to allow them to pull each page themselves. This could be a seperate function perhaps. Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant