laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000156523
EingereichtMarch 12, 2023
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for Python
Gefunden in Version2.0.1
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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

Workaround

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

Schritte zur Reproduzierung

Bug-ID: BUG-000156523

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