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

Adding top instruction for ListUsers to avoid throttling #513

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

KoenZomers
Copy link
Contributor

When retrieving all users in a larger tenant, chances are likely that all the paging that happens will run into throttling as it will only retrieve 100 users per request. I've ran into this with many customers. To lessen the chance of throttling, I have changed the code to request the largest possible batch size so less requests have to be made to fetch all the users.

jansenbe added a commit that referenced this pull request Oct 29, 2021
@jansenbe jansenbe merged commit dab5ffb into pnp:dev Oct 29, 2021
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

2 participants