After cloning a map to a production portal I want to change the map owner and the folder it is in...
So, first I get the item I want to change in the target portal. Then I try and reassign it.
item<SPAN class="punctuation token">.</SPAN>reassign_to<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'user first and last name'</SPAN><SPAN class="punctuation token">,</SPAN> target_folder<SPAN class="operator token">=</SPAN><SPAN class="string token">'test'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
Then I get an error: RuntimeError: You do not have permissions to access this resource or perform this operation.
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!