<?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 Re: Create ArcGIS Online user in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341465#M9194</link>
    <description>&lt;P&gt;The error is unexpected for what I think the cause is - I believe you are missing the required "role" parameter. Add another argument at the end equal to&amp;nbsp;&lt;SPAN class=""&gt;org_admin&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;org_publisher&lt;/SPAN&gt;&lt;SPAN&gt;, or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;org_user&lt;/SPAN&gt; and see if that works.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2023 15:44:11 GMT</pubDate>
    <dc:creator>EarlMedina</dc:creator>
    <dc:date>2023-10-25T15:44:11Z</dc:date>
    <item>
      <title>Create ArcGIS Online user</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341406#M9191</link>
      <description>&lt;P&gt;I am trying to create a user with Python in ArcGIS Online. Tried this in Notebook in ArcGIS Online, in Idle for Pro (3.1.1), in a Notebook in Pro and in the command line in Pro. Every time I receive the same error message.&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("home")&lt;/P&gt;&lt;P&gt;newuser = gis.users.create("testuserxyz_sbbabc1","1234567890QWERTYuio","Dumbo","Dumbo2","test@test.com")&lt;/P&gt;&lt;P&gt;The error message:&lt;/P&gt;&lt;P&gt;TypeError Traceback (most recent call last)&lt;BR /&gt;In [3]:&lt;BR /&gt;Line 4: newuser = gis.users.create("testuserxyz_sbbabc1","1234567890QWERTYuio","Dumbo","Dumbo2","test@test.com")&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py, in create:&lt;BR /&gt;Line 3283: return self._create64plus(**params)&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\__init__.py, in _create64plus:&lt;BR /&gt;Line 3638: "groups": ",".join([g for g in groups if g]),&lt;/P&gt;&lt;P&gt;TypeError: sequence item 0: expected str instance, Group found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 14:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341406#M9191</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2023-10-25T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create ArcGIS Online user</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341441#M9192</link>
      <description>&lt;P&gt;Just found another page with some info on this, I will look into it tomorrow.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341441#M9192</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2023-10-25T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create ArcGIS Online user</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341465#M9194</link>
      <description>&lt;P&gt;The error is unexpected for what I think the cause is - I believe you are missing the required "role" parameter. Add another argument at the end equal to&amp;nbsp;&lt;SPAN class=""&gt;org_admin&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;org_publisher&lt;/SPAN&gt;&lt;SPAN&gt;, or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;org_user&lt;/SPAN&gt; and see if that works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341465#M9194</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2023-10-25T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create ArcGIS Online user</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341476#M9195</link>
      <description>&lt;P&gt;Thanks! I tried this but still the same error though...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also had a look at this other page, but no luck there either.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341476#M9195</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2023-10-25T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create ArcGIS Online user</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341494#M9197</link>
      <description>&lt;P&gt;Hey Joris the following &lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-create-a-new-user-with-a-custom-role-using-arcgi-000023404" target="_self"&gt;support article&lt;/A&gt; might be a good sample to follow for this. I believe you need to specify a user type and user role&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis.users.create(username='username',
                 password='password',
                 firstname = 'Peter',
                 lastname='Parker',
                 email='PParker@test.com',
                 description='Test user',
                 role='sadc65er16c1e5f',
                 user_type='Creator')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further issues with this,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 16:09:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341494#M9197</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2023-10-25T16:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create ArcGIS Online user</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341834#M9201</link>
      <description>&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;Thanks to our local ESRI support, it seems likely that the issue is caused by a default group that is specified for new members in our ArcGIS Online organisation. I still need to confirm this, I will post an update.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 08:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1341834#M9201</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2023-10-26T08:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create ArcGIS Online user</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1342622#M9206</link>
      <description>&lt;P&gt;ESRI Netherlands support helped me out with this. It has been logged as a bug.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens when there's a default group that is assigned to all new members in ArcGIS Online. The workaround is adding the groups parameter to the request, with the ID of the group, like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis.users.create(username='username',
                 password='password',
                 firstname = 'Peter',
                 lastname='Parker',
                 email='PParker@test.com',
                 description='Test user',
                 role='sadc65er16c1e5f',
                 user_type='Creator',
                 groups='&amp;lt;group-id&amp;gt;')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 13:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-arcgis-online-user/m-p/1342622#M9206</guid>
      <dc:creator>jorisfrenkel</dc:creator>
      <dc:date>2023-10-27T13:02:39Z</dc:date>
    </item>
  </channel>
</rss>

