<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create user from jupyter notebook : Error Code: 500 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-user-from-jupyter-notebook-error-code-500/m-p/867931#M4528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a user from a script. It a LDAP user.&lt;/P&gt;&lt;P&gt;I have an error when I execute the command line in &lt;STRONG&gt;jupyter notebook&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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');&lt;/PRE&gt;&lt;P&gt;The error :&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;java.lang.Exception: The server at '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2FMYSERVER.MYDNS.LAN%3A7443%2Farcgis%2Fsharing%2Frest%2Fcommunity%2FcreateUser" target="_blank"&gt;https://MYSERVER.MYDNS.LAN:7443/arcgis/sharing/rest/community/createUser&lt;/A&gt;&lt;SPAN&gt;' returned an error. Unable to signup user. ["Unable to add user."] (Error Code: 500)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;I have tested the user connection and it works.&lt;/P&gt;&lt;P&gt;I have tested to create the user via the web portal interface and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python : 3.6.6&lt;/P&gt;&lt;P&gt;arcgis for python : 1.4.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 17:01:17 GMT</pubDate>
    <dc:creator>MagalyClément-Zaber</dc:creator>
    <dc:date>2021-12-12T17:01:17Z</dc:date>
    <item>
      <title>Create user from jupyter notebook : Error Code: 500</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-user-from-jupyter-notebook-error-code-500/m-p/867931#M4528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a user from a script. It a LDAP user.&lt;/P&gt;&lt;P&gt;I have an error when I execute the command line in &lt;STRONG&gt;jupyter notebook&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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');&lt;/PRE&gt;&lt;P&gt;The error :&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;java.lang.Exception: The server at '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2FMYSERVER.MYDNS.LAN%3A7443%2Farcgis%2Fsharing%2Frest%2Fcommunity%2FcreateUser" target="_blank"&gt;https://MYSERVER.MYDNS.LAN:7443/arcgis/sharing/rest/community/createUser&lt;/A&gt;&lt;SPAN&gt;' returned an error. Unable to signup user. ["Unable to add user."] (Error Code: 500)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;I have tested the user connection and it works.&lt;/P&gt;&lt;P&gt;I have tested to create the user via the web portal interface and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python : 3.6.6&lt;/P&gt;&lt;P&gt;arcgis for python : 1.4.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-user-from-jupyter-notebook-error-code-500/m-p/867931#M4528</guid>
      <dc:creator>MagalyClément-Zaber</dc:creator>
      <dc:date>2021-12-12T17:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create user from jupyter notebook : Error Code: 500</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-user-from-jupyter-notebook-error-code-500/m-p/867932#M4529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the error !&lt;/P&gt;&lt;P&gt;In 1.4.1 the parameter :&lt;/P&gt;&lt;PRE&gt;idp_username=None&lt;/PRE&gt;&lt;P&gt;worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to put the login for this parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-user-from-jupyter-notebook-error-code-500/m-p/867932#M4529</guid>
      <dc:creator>MagalyClément-Zaber</dc:creator>
      <dc:date>2018-08-06T07:12:17Z</dc:date>
    </item>
  </channel>
</rss>

