Esri / Esri/arcgis-python-api

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

Ouverte
#1,815 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
2.2k
Forks
1.2k
Merge moyen
2 h 40 min
PR mergées (30 j)
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?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par localiser l’implémentation Python et le point d’entrée de License.all(), puis reproduisez le comportement dans une organisation ArcGIS Online comptant plus de 10 000 utilisateurs et disposant d’une licence attribuée à plus de 10 000 utilisateurs. Le travail sera considéré comme terminé lorsque la liste complète des utilisateurs sous licence sera accessible, ou lorsque la méthode indiquera clairement que la liste renvoyée est incomplète.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
api
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.