laptop and a wrench

Bogue

The gis.users.advanced_search() script returns an incorrect user count.

Dernière publication: January 27, 2022 ArcGIS API for Python
Numéro d’ID de bogue BUG-000145417
EnvoiDecember 20, 2021
Dernière modificationJune 18, 2025
S’applique àArcGIS API for Python
Version trouvée1.9.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutKnown Limit

Informations supplémentaires

When using advanced_search the orgid is not specified as it is in regular search. The orgid needs to be specified in the query to limit the search to only the organization. For example, say an ArcGIS Online organization has multiple users with the email: 'test@email.com'. To return the count of users within the org with this email, the following code could be used: gis.users.advanced_search(query='email: AND orgid:', return_count = True) Note, the orgid can be found in the gis properties: gis.properties.id

Solution de contournement

Use the gis.users.search script as documented here: https://developers.arcgis.com/python/guide/accessing-and-managing-users/#searching-for-user-accounts

Étapes pour reproduire

ID de bogue: BUG-000145417

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement