laptop and a wrench

不具合

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
不具合 ID 番号 BUG-000156523
送信されましたMarch 12, 2023
最終更新日June 5, 2024
適用対象ArcGIS API for Python
見つかったバージョン2.0.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスWill Not Be Addressed

参考情報

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

対処法

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

再現の手順

不具合 ID: BUG-000156523

ソフトウェア:

  • ArcGIS API for Python

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動