Hi,
I want to create a user from a script. It a LDAP user.
I have an error when I execute the command line in jupyter notebook :
gis.users.create(email=False, username='THELOGIN', password=False, firstname='John', lastname='DOE', description='bla bla', role='dnJ9NxiB8fz91LRT', provider='entreprise', idp_username=None, level='2', thumbnail=r'\\server\d$\files\admin\users\avatar.png');
The error :
java.lang.Exception: The server at 'https://MYSERVER.MYDNS.LAN:7443/arcgis/sharing/rest/community/createUser' returned an error. Unable to signup user. ["Unable to add user."] (Error Code: 500)
I have tested the user connection and it works.
I have tested to create the user via the web portal interface and it works.
Python : 3.6.6
arcgis for python : 1.4.2
Thanks for help
Solved! Go to Solution.
I found the error !
In 1.4.1 the parameter :
idp_username=None
worked.
Now I have to put the login for this parameter.
I found the error !
In 1.4.1 the parameter :
idp_username=None
worked.
Now I have to put the login for this parameter.