laptop and a wrench

Bug

Using the OR operator in the ArcGIS API for Python gis.users.search() function returns all members of the organization.

Last Published: July 11, 2022 ArcGIS API for Python
Bug ID Number BUG-000149901
SubmittedJune 10, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.9.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

This issue is by design regarding the query syntax within the ArcGIS ecosystem. Placing parentheses around the query, such as 'gis.users.search("(adminaccount OR anotheraccount)")' returns the intended results.

Steps to Reproduce

Bug ID: BUG-000149901

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options