capless / warrant

Python library for using AWS Cognito. With support for SRP.
Apache License 2.0
467 stars 190 forks source link

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

Open jmking opened 5 years ago

jmking commented 5 years ago

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?