<?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 Delete a Portal user that owns a group in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/delete-a-portal-user-that-owns-a-group/m-p/1371953#M9540</link>
    <description>&lt;P&gt;I have a script that iterates a list of Portal usernames, searches for them, and deletes the account.&amp;nbsp; &amp;nbsp; I THOUGHT if a user owned a group it would cause the delete user method to fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What I think happened when I ran my script was if the user owned a group, it went and unshared all the items in the group, deleted the group and then the user.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I crazy or is that how its supposed to work??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 21:39:55 GMT</pubDate>
    <dc:creator>Dan_Brumm</dc:creator>
    <dc:date>2024-01-18T21:39:55Z</dc:date>
    <item>
      <title>Delete a Portal user that owns a group</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/delete-a-portal-user-that-owns-a-group/m-p/1371953#M9540</link>
      <description>&lt;P&gt;I have a script that iterates a list of Portal usernames, searches for them, and deletes the account.&amp;nbsp; &amp;nbsp; I THOUGHT if a user owned a group it would cause the delete user method to fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What I think happened when I ran my script was if the user owned a group, it went and unshared all the items in the group, deleted the group and then the user.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I crazy or is that how its supposed to work??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 21:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/delete-a-portal-user-that-owns-a-group/m-p/1371953#M9540</guid>
      <dc:creator>Dan_Brumm</dc:creator>
      <dc:date>2024-01-18T21:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a Portal user that owns a group</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/delete-a-portal-user-that-owns-a-group/m-p/1371954#M9541</link>
      <description>&lt;P&gt;There are two ways to delete users. One is &lt;STRONG&gt;U&lt;/STRONG&gt;&lt;STRONG&gt;ser.delete()&lt;/STRONG&gt;, which lets you optionally supply a &lt;STRONG&gt;reassign_to&lt;/STRONG&gt; parameter to move all their content to another user first.&lt;/P&gt;&lt;P&gt;The second is &lt;STRONG&gt;UserManager.delete_users()&lt;/STRONG&gt;, but that method will &lt;EM&gt;only &lt;/EM&gt;work if the user owns no content.&lt;/P&gt;&lt;P&gt;If you did not supply a "reassign_to" parameter, or were using the second method, the delete should have failed. Can you confirm if your script does this?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 21:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/delete-a-portal-user-that-owns-a-group/m-p/1371954#M9541</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-01-18T21:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a Portal user that owns a group</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/delete-a-portal-user-that-owns-a-group/m-p/1373214#M9571</link>
      <description>&lt;P&gt;My script used the first method user.delete and I didn't use the reassign parameter. I thought that would prevent it from deleting any users that owned a group.&amp;nbsp; &amp;nbsp;I had to recover the groups that were deleted. I am going to run my script again and try the reassign parameter this time.&amp;nbsp; fingers crossed.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 21:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/delete-a-portal-user-that-owns-a-group/m-p/1373214#M9571</guid>
      <dc:creator>Dan_Brumm</dc:creator>
      <dc:date>2024-01-22T21:59:22Z</dc:date>
    </item>
  </channel>
</rss>

