laptop and a wrench

Erro

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
Número de ID do Erro BUG-000156523
EnviadoMarch 12, 2023
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for Python
Versão encontrada2.0.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

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

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000156523

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download