Skip to content

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

Open
jmking wants to merge 2 commits intoqwigo:masterfrom
jmking:get_all_users
Open

Modify get_users to return all users in the user pool instead of just the first 60 #129
jmking wants to merge 2 commits intoqwigo:masterfrom
jmking:get_all_users

Conversation

@jmking
Copy link
Copy Markdown

@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.

1 participant