License.all() returns incorrect results for orgs with >10,000 users
- Lenguaje dominante
- Python
- Estrellas
- 2.2k
- Forks
- 1.2k
- Merge medio
- 2 h 40 min
- PR fusionados (30 d)
- 2
Descripción
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?
Guía de contribución
Línea de trabajo
Comienza localizando la implementación de Python y el punto de entrada de License.all(), y luego reproduce el comportamiento en una organización de ArcGIS Online con más de 10.000 usuarios y una licencia asignada a más de 10.000 usuarios. Se considerará terminado cuando se pueda acceder a la lista completa de usuarios con licencia o cuando el método indique claramente que la lista devuelta está incompleta.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100