laptop and a wrench

Bogue

The first Login behavior requires ArcGIS API for Python to set a new password, but not when logging into Portal for ArcGIS directly.

ArcGIS API for Python
Numéro d’ID de bogue BUG-000156523
EnvoiMarch 12, 2023
Dernière modificationJune 5, 2024
S’applique àArcGIS API for Python
Version trouvée2.0.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

The ArcGIS Enterprise and ArcGIS Online system changed the login process to include things like email verification and security questions. It is recommend that when logging in via code using the Python API for the first time, use the `use_gen_token=True` for the first time and call `gis.user.me.update()` to set the security question. gis = GIS( url="SITE", username="USERNAME", password="PASSWORD", use_gen_token=True, ) gis.users.me.update(security_question=, security_answer="ENTER THE ANSWER") Once this is completed, log back into the system normally without the `use_gen_token`. gis = GIS( url="SITE", username="USERNAME", password="PASSWORD")

Solution de contournement

The ArcGIS Enterprise and Online system changed the login process to include things like email verification and security questions. It is recommend that when logging in via code using the Python API for the first time, use the `use_gen_token=True` for the first time and call `gis.user.me.update()` to set the security question. gis = GIS( url="SITE", username="USERNAME", password="PASSWORD", use_gen_token=True, ) gis.users.me.update(security_question=, security_answer="ENTER THE ANSWER") Once this is completed, log back into the system normally without the `use_gen_token`. gis = GIS( url="SITE", username="USERNAME", password="PASSWORD")

Étapes pour reproduire

ID de bogue: BUG-000156523

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