Numéro d’ID de bogue |
BUG-000145417 |
Envoi | December 20, 2021 |
Dernière modification | June 18, 2025 |
S’applique à | ArcGIS API for Python |
Version trouvée | 1.9.1 |
Système d’exploitation | Windows OS |
Version du système d’exploitation | 10.0 64 Bit |
Statut | Known Limit
Après examen par l’équipe de développement, il a été déterminé que ce problème est lié à une limitation connue du logiciel sur laquelle Esri n’a aucun contrôle. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
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: