laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000180531
EingereichtOctober 29, 2025
Zuletzt geändertDecember 21, 2025
Gilt fürArcGIS API for Python
Gefunden in Version2.4.1
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusKnown Limit

Zusätzliche Informationen

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",

Workaround

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]

Schritte zur Reproduzierung

Bug-ID: BUG-000180531

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln