laptop and a wrench

Error

Running the users.search() method against an ArcGIS Enterprise 11.5 deployment to count users with the Viewer user type returns the error message "Error accessing: level".

ArcGIS API for Python
Número de ID del error BUG-000180531
EnviadoOctober 29, 2025
Última modificaciónDecember 21, 2025
Relacionado conArcGIS API for Python
Versión encontrada2.4.1
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoKnown Limit

Información adicional

A User object in the Python API depends on the properties returned from the portal. Filter out any users missing the desired properties. Some built-in accounts common across enterprises include: "esri_boundaries", "esri_demographics", "esri_livingatlas", "esri_nav", "esri_webstyles",

Solución alternativa

Include the following line in the script allows running it successfully against an ArcGIS Enterprise environment. This line filters users to include only those with the level property:

filtered_users = [user for user in users if 'level' in user]

Pasos para reproducir

ID del error: BUG-000180531

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga