<?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 Change Owner and Folder in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/change-owner-and-folder/m-p/834441#M3284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After cloning a map to a production portal I want to change the map owner and the folder it is in...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, first I get the item I want to change in the target portal. Then I try and reassign it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;reassign_to&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'user first and last name'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; target_folder&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'test'&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I get an error: RuntimeError: You do not have permissions to access this resource or perform this operation.&lt;/P&gt;&lt;P&gt;I am an admin on the portal. I have also tried with the site admin user without any luck. What am I doing wrong? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2019 00:22:26 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2019-09-11T00:22:26Z</dc:date>
    <item>
      <title>Change Owner and Folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/change-owner-and-folder/m-p/834441#M3284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After cloning a map to a production portal I want to change the map owner and the folder it is in...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, first I get the item I want to change in the target portal. Then I try and reassign it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;reassign_to&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'user first and last name'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; target_folder&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'test'&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I get an error: RuntimeError: You do not have permissions to access this resource or perform this operation.&lt;/P&gt;&lt;P&gt;I am an admin on the portal. I have also tried with the site admin user without any luck. What am I doing wrong? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 00:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/change-owner-and-folder/m-p/834441#M3284</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2019-09-11T00:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change Owner and Folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/change-owner-and-folder/m-p/834442#M3285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forest,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified what is &lt;A href="https://developers.arcgis.com/python/sample-notebooks/move-existing-user-content-to-a-new-user/"&gt;here&lt;/A&gt;&amp;nbsp;and this code worked for me:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/459509_MoveContent.GIF" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our Portal is 10.7 and I'm using the 1.6.2 API version.&amp;nbsp; The one thing I'd check is the new user id- I had to add the domain (&lt;A href="mailto:new_user@domain"&gt;new_user@domain&lt;/A&gt;) for it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 21:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/change-owner-and-folder/m-p/834442#M3285</guid>
      <dc:creator>Per_Åke_MattiasWallin</dc:creator>
      <dc:date>2019-09-13T21:38:31Z</dc:date>
    </item>
  </channel>
</rss>

