laptop and a wrench

Bug

Unable to create an administrative account using ArcGIS API for Python.

ArcGIS API for Python
Bug ID Number BUG-000168602
SubmittedJune 25, 2024
Last ModifiedFebruary 18, 2025
Applies toArcGIS API for Python
Version found2.3.0
Operating SystemWindows OS
Operating System Version11.0 64 bit
Version FixedQ4 2024 (version 2.4.0)
StatusFixed

Additional Information

An administrator user role cannot be created with the Python API by specifying ‘org_admin’ as the role value. Instead, a new user can be created with an available role such as ‘org_publisher’, and subsequently, the user’s role can be updated to administrator using the 'update_role()' method on the User object.

Workaround

Use another value for the role argument, such as 'org_publisher', then invoke the update_role(role='org_admin') method to update the newly created user's role value.

Steps to Reproduce

Bug ID: BUG-000168602

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options