AnsweredAssumed Answered

Error creating a user with custom role

Question asked by nareshaligeti on Sep 13, 2018
Latest reply on Sep 14, 2018 by nareshaligeti

I get an error when I execute my script to create a user with a custom role. Level 2 is assigned as well to the user but no luck executing the code successfully.

 

 

java.lang.Exception:
The server at 'https://XXXXXXXXXXXXX.XXXXXXX.com:7443/arcgis/sharing/rest/community/createUser' returned an error. The user account cannot be created as the role assigned to it does not exist. []
(Error Code: 500)

 

But the custom role exists when I see logging in as an admin through the UI.

 

Can I get some help? Thanks.

Atma Mani

 

-Naresh Aligeti

 

python api portal

arcgis-api-python

Outcomes