-
Notifications
You must be signed in to change notification settings - Fork 126
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
Getting all users using get_users #63
Comments
Hi Dustin! The documented max may not currently be enforced, but it will be in the near future. Consider the "limit" parameter a request, but the server may decide to return whatever number of results it wants. The current python client library doesn't help much with this, but we'll be updating it to do that soon. It is probably easiest to wait for that update. |
Hi again, Just had a quick question that is probably stupidly obvious. I noticed you just updated the 'admin.py' to include the offset and limit parameters. I was wondering if those changes will be reflected soon when I install the module in Python using the "python -m pip install duo_client" command. Right now I can get it working by manually installing the python file and creating the pyc for it. Thank you, |
Hi Dustin, |
Forgive me to adding to this topic, but when pagination is required, will the client automatically send another get_users call with the next_offset parameter, or will we need to manually call get_users each time until we no longer see next_offset in the JSON result? |
Hi! If you want us to handle pagination on, let's say, the |
Yes, that answers my question perfectly. I would appreciate the option to make one call and have the pagination automatically taken care of, in addition to having manual control. Thank you! |
Duo Client Python 4.1.0 is released and can be imported via pip! Also the Duo API will now properly respect pagination args. |
Good Morning,
I am having an issue using the get_users command. In DUO's Admin API, it states that only 300 users can be pulled at a time, and that I would have to specify an offset to get the next 300 users. So far, using the get_users command, I am able to pull up to at least 500 users with no issue. However, if this is an error on DUO's end and they end up correcting the error my script will no longer function. Would you be able to tell me the proper syntax of grabbing all the user's in groups of 300 at a time, using the offset?
Thank you,
Dustin
The text was updated successfully, but these errors were encountered: