<?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: Clone Portal users, groups and content using 60 trial in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822951#M2884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I do have the latest 1.0.1.&amp;nbsp; I will check my process again and put in a support ticket if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2017 17:01:06 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2017-03-16T17:01:06Z</dc:date>
    <item>
      <title>Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822943#M2876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;I am running through the “Clone Portal users, groups and content” sample notebook and I am running into a few issues. My source is an AGOL Subscription and target is a 60 day trial subscription.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When I try the &lt;CITE&gt;copy_user(target, user, ‘TestPassword@123′)&lt;/CITE&gt;, it does not want to create the new user (&lt;STRONG&gt;HTTPError: HTTP Error 404: Not Found&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;2. When I try and copy the group (&lt;CITE&gt;tgt_group = copy_group(target, source, group)&lt;/CITE&gt;) I get a runtime error (&lt;STRONG&gt;RuntimeError: Unable to reassign group.&lt;BR /&gt; You already have a group named ‘Admin Tools for AGOL’. Try a different name.&lt;BR /&gt; (Error Code: 400)&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems as though the problem is if the target portal is a 60 day trial. I went from the 60 day trial to my on-premise portal and it ran fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong here?&lt;BR /&gt; Thanks&lt;BR /&gt; Julian.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 03:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822943#M2876</guid>
      <dc:creator>JulianInskip</dc:creator>
      <dc:date>2016-12-22T03:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822944#M2877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Julian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You aren't doing anything wrong. I checked and found out that the add users functionality in the API currently only works with a Portal and not with ArcGIS Online orgs. This is something we should fix - I've made a note of this in our&amp;nbsp;issues database and hope to have a fix in the next update.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 12:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822944#M2877</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2016-12-23T12:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822945#M2878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those with access to Esri bugs database, it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUG-000102019 When using the Python API to create a user to ArcGIS Online, python code will error out with 404: Not Found Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 13:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822945#M2878</guid>
      <dc:creator>PeterKnoop</dc:creator>
      <dc:date>2017-01-11T13:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822946#M2879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this also the case with group.add_users(list of users). I'm not having any luck passing in a username to an existing AGOL group to add the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 08:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822946#M2879</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2017-03-16T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822947#M2880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/rsingh-esristaff"&gt;rsingh-esristaff&lt;/A&gt;&amp;nbsp; This &lt;EM&gt;may have&lt;/EM&gt; saved me from putting in a post this morning.&amp;nbsp; +1 for getting it to work in AGOL too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are just starting on testing Portal, but our org's AGOL account has been around for a few years and is very messy.&amp;nbsp; In my case, I was testing the "Move existing user content to a new user" sample as demo'd in one of the Dev Summit sessions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've getting my expected results in Jupyter Notebook for the "gis.users.create"&amp;nbsp; section (and DO NOT do not see a 404 error), but the new user does not show in our AGOL.&amp;nbsp; When I do the "item.reassign_to(new_userid)" section, that is where I get my "You do not have permissions to access this resource or perform this operation" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this related to the same bug?&amp;nbsp; Or should I post a new question or tech support ticket?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822947#M2880</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-03-16T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822948#M2881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Please note that this bug was fixed in version 1.0.1 released in February. See release notes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A href="https://developers.arcgis.com/python/guide/release-notes/"&gt;https://developers.arcgis.com/python/guide/release-notes/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="color: #4c4c4c; margin-left: 0in;"&gt;Fixed bug in creating new users on ArcGIS Online or Portal for ArcGIS 10.5 or newer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;The level parameter was added to gis.users.create() call - &lt;A href="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.UserManager.create"&gt;http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.UserManager.create&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822948#M2881</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-03-16T16:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822949#M2882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Please note that this bug was fixed in version 1.0.1 released in February. See release notes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A href="https://developers.arcgis.com/python/guide/release-notes/" style="color: #2989c5;"&gt;https://developers.arcgis.com/python/guide/release-notes/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="color: #4c4c4c; margin-left: 0in;"&gt;Fixed bug in creating new users on ArcGIS Online or Portal for ArcGIS 10.5 or newer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;The level parameter was added to gis.users.create() call - &lt;A href="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.UserManager.create" style="color: #2989c5;"&gt;http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.UserManager.create&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;group.add_users(list of users) was failing as a cascase effect of the user not being added. It should work with the fix.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Can you please update and re-try. The issue should be resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822949#M2882</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-03-16T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822950#M2883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Rebecca&amp;nbsp;I'll look into the other issue you reported with Item.reasssign_to() and get back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822950#M2883</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-03-16T17:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822951#M2884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I do have the latest 1.0.1.&amp;nbsp; I will check my process again and put in a support ticket if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822951#M2884</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-03-16T17:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822952#M2885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks.&amp;nbsp;&amp;nbsp; BTW, I test with the added&amp;nbsp;&amp;nbsp; level = 2&amp;nbsp; (and tried level = '2') but same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Comment re: help.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You may want to mention what the default is for "level" is you don't add that to your arguments.&amp;nbsp; Since the "original" users (before the level 1/2 designation) all converted to Level 2, many of us do not (and maybe never will) have level 1 users.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; ...see&lt;A href="https://community.esri.com/people/rsingh-esristaff" target="_blank"&gt;rsingh-esristaff&lt;/A&gt; 's response below....I did see that but didn't click in my brain at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re: the item.reassign_to()&amp;nbsp;&amp;nbsp;&amp;nbsp; not sure if it is that line, or the entire block that is causing the issue&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;usercontent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; olduser&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;items&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
folders &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; olduser&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;folders
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; usercontent&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;reassign_to&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_userid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; folder &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; folders&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;create_folder&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; new_userid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; folderitems &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; olduser&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;items&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; folderitems&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;reassign_to&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;new_userid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; target_folder&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't mean to high-jack this thread.&amp;nbsp; I can spin this off if you think that is appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: btw VERY new to Python API (just started this week, after Dev Summit exposure)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822952#M2885</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-12T09:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822953#M2886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The default level is level 2. It's mentioned in the method signature in the api doc at&amp;nbsp;&lt;A class="link-titled" href="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.UserManager.create" title="http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.UserManager.create"&gt;arcgis.gis module — arcgis 1.0.1 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE class="" style="color: #000000; background: transparent; border: none; font-weight: bold;"&gt;create&lt;/CODE&gt;&lt;SPAN class="" style="color: #555555; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;username&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;password&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;firstname&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;lastname&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;email&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;description=None&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;role='org_user'&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;provider='arcgis'&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;idp_username=None&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;level=2&lt;/EM&gt;&lt;SPAN class="" style="color: #555555;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822953#M2886</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-03-16T17:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822954#M2887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Rebecca I looked into the issue and it seems to me that your AGOL org&amp;nbsp;is not configured to use a different identity provider such as SAML or IWA that this sample assumes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The gis.users.create() call is failing for probably this reason, and it would be returning you a None newuser that you can confirm by print(newuser) after this call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could create a new user by replacing the code in there with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;newuser = target.users.create(new_userid, "pwdN55otUsed", olduser.firstName, olduser.lastName, \
 new_userid, description=olduser.description, role=olduser.role)&lt;/PRE&gt;&lt;P&gt;then print(newuser) to confirm it is not None and proceed forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reassign_to call is failing because the user isnt getting created for some reason.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822954#M2887</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2021-12-12T09:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822955#M2888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/157558"&gt;Rohit Singh&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;it seems to me that your AGOL org&amp;nbsp;is not configured to use a different identity provider such as SAML or IWA that this sample assumes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;you are correct.&amp;nbsp; We are not using SAML or IWA.&amp;nbsp; I had already removed the&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;, provider='enterprise', idpUsername=None&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;part of the command, and have played with adding the email, and level.&amp;nbsp;&amp;nbsp;&amp;nbsp; Using print(newuser)&amp;nbsp;&amp;nbsp; or type(newuser)&amp;nbsp; does produce info....not&amp;nbsp;&amp;nbsp; "None", null, or anything else that makes it look like it didn't work.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/341780_pastedImage_6.png" style="width: 523px; height: 443px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type(newuser)&amp;nbsp;&amp;nbsp;&amp;nbsp; returns&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/341781_pastedImage_7.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which makes it look like it works.&amp;nbsp; I'm able to do many other queries with my connection, which is an Administrator.&amp;nbsp; Of course, I am just reading most things.&amp;nbsp; The createuser gives me now error that I can see (not in the dev window either) but it never shows in my org account ...and the other error mention when trying to move things.&amp;nbsp; My guess is the move isn't working since the new user never shows.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 22:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822955#M2888</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-03-16T22:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822956#M2889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i've confirmed i have 1.01 installed through arcpro python packages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm running my code through the arcpro python terminal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i run this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if found == 0 :&lt;BR /&gt;&amp;nbsp; &amp;nbsp;print("user not found: " + mUser + " for " + row['title'])&lt;BR /&gt;&amp;nbsp; &amp;nbsp;outkey = group.add_users(mUser)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;print ("user now added to group" + str(outkey))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get this - user is not added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user not found: canvasseraip01 for PT ASIA INTI PRIMA - Shared&lt;BR /&gt;user now added to group {'notAdded': ['P', '0', 'a', '1', 'r', 'c', 's', 'e', 'V'&lt;BR /&gt;, 'i', 'n']}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 00:34:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822956#M2889</guid>
      <dc:creator>AlistairFox</dc:creator>
      <dc:date>2017-03-17T00:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822957#M2890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for posting the screenshots. I believe I know what's going on here.&amp;nbsp;Usernames are unique across all organizations in ArcGIS Online. There was already a user in AGOL with username atestuser, which was created on&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;02 Jul 2014. So the user you think that's being created in your org is actually another user from another org.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;It's a bug that gis.users.create() is not erroring out and returning a user with that username that already existed. I've fixed it internally, so the next update would fix it. A workaround would be to use a username with a prefix of _&amp;lt;yourorgname&amp;gt; to prevent such username clashes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Rohit&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 19:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822957#M2890</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-03-17T19:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Clone Portal users, groups and content using 60 trial</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822958#M2891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; yes, that "test" family is definitely prolific.&amp;nbsp; Thank you for submitting a bug since an error message here would have helped. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested, I add _ouragency and the gis.users.serach() now shows that is it added.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/343284_pastedImage_2.png" style="width: 421px; height: 175px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was going to report that it still didn't show up in AGOL, but then I realized that it was inline with the "olduser" name, base on the command.&amp;nbsp; Now that I understand that, I think I can modify the notebook to get it to do what I want. (and if not, I'll open a new thread).&amp;nbsp; To make it clear to others, the newusername of "ATestuser_adfg" if is inline with the old user.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/343285_pastedImage_3.png" style="width: 620px; height: 65px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 21:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-portal-users-groups-and-content-using-60/m-p/822958#M2891</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-03-20T21:39:28Z</dc:date>
    </item>
  </channel>
</rss>

