Create user from jupyter notebook : Error Code: 500

311
1
Jump to solution
08-05-2018 11:56 PM
New Contributor III

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

Reply
0 Kudos
1 Solution

Accepted Solutions
New Contributor III

I found the error !

In 1.4.1 the parameter :

idp_username=None

worked.

Now I have to put the login for this parameter.

View solution in original post

Reply
0 Kudos
1 Reply
New Contributor III

I found the error !

In 1.4.1 the parameter :

idp_username=None

worked.

Now I have to put the login for this parameter.

View solution in original post

Reply
0 Kudos