Esri / Esri/arcgis-python-api

License.all() returns incorrect results for orgs with >10,000 users

Open
#1,815 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
2.2k
Forks
1.2k
Avg merge
2h 40m
Merged PRs (30d)
2

Description

In an ArcGIS Online organization with >10,000 users, the License.all() method returns only the first 10,000 users that have a particular license. There does not seem to be a way to page results or otherwise access the users above the first 10,000.

You can reproduce this issue in any org with more than 10,000 users, for something is licensed to more than 10,000 users, for which you attempt to use all() to retrieve the full list of usernames to which it is licensed.

If the 10,000 limitation cannot be addressed, then it would be helpful to have all() return an error message that the list of usernames exceeds the limit and is incomplete, which a script could catch.

In the meantime, any suggestions for a workaround that would help construct the complete list of users that have a license? Is getting a list of all users, and checking them one-by-one for that license, the best way to do it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.