<?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: Remove ArcGIS Server User through Python Script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431822#M33967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt.&amp;nbsp; Unfortunately the Create/Delete user in the ArcRest toolkit was created only for ArcGIS Online Users - not users from an onsite ArcGIS Server.&amp;nbsp; Unless I'm missing something (which is definitely possible!), I think it might take quite a bit of re-engineering to make it work for ArcGIS Server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Server Admin Toolkit does look like it has nice tools for managing ArcGIS Server, but doesn't seem to have anything for managing users. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 17:42:32 GMT</pubDate>
    <dc:creator>RyanN</dc:creator>
    <dc:date>2015-06-04T17:42:32Z</dc:date>
    <item>
      <title>Remove ArcGIS Server User through Python Script</title>
      <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431818#M33963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to remove an ArcGIS Server user account through a python script?&amp;nbsp; I have a secured service that I'd like certain users to only have access to for a certain period of time and then remove their access.&amp;nbsp; Rather than trying to remember to remove their account, I was hoping it would be possible to create a python script which could be used with Task Scheduler to schedule a time for the script to run and remove the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the REST admin having an API, I'm hoping this is possible, but am not really sure where to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431818#M33963</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2015-04-01T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ArcGIS Server User through Python Script</title>
      <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431819#M33964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r3000001rq000000.htm" title="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r3000001rq000000.htm"&gt;ArcGIS REST API - Remove User&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/0154/0154000005r1000000.htm" title="http://resources.arcgis.com/en/help/main/10.2/0154/0154000005r1000000.htm"&gt;ArcGIS for Server (Windows) - Scripting with the ArcGIS REST API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I haven't done this before so getting the info is as much as I know. Anything more and I'm learning right with you. Here's some other useful information I've found...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340"&gt;ArcGIS Server Administration Toolkit - 10.1+&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/arcpy/AdministeringArcGISServerwithPython_DS2014" style="line-height: 1.5;" title="https://github.com/arcpy/AdministeringArcGISServerwithPython_DS2014"&gt;arcpy/AdministeringArcGISServerwithPython_DS2014 · GitHub&lt;/A&gt;&lt;SPAN style="line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 16:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431819#M33964</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-04-03T16:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ArcGIS Server User through Python Script</title>
      <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431820#M33965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew - We are also looking for a solution to manage/delete user profiles in ArcGIS Server via scripts or other tools as a part of map-survey we plan to deploy.&amp;nbsp; In our case, we want to completely remove the user profiles after our survey is complete.&lt;/P&gt;&lt;P&gt;Blake - thanks for the resources as a place to start.&lt;/P&gt;&lt;P&gt;Have you guys come up with any solutions since your posting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 15:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431820#M33965</guid>
      <dc:creator>RyanN</dc:creator>
      <dc:date>2015-06-04T15:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ArcGIS Server User through Python Script</title>
      <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431821#M33966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the &lt;A href="https://github.com/Esri/ArcREST/"&gt;ArcREST toolbox&lt;/A&gt; on GitHub to be a good resource for this.&amp;nbsp; It provides a wizard driven interface to create and delete users.&amp;nbsp; Using ModelBuilder you can create a model using the 'Create a User' or 'Delete User' script tools.&amp;nbsp; You can then include the model as part of a python script by calling your toolbox and model, which can then be used along with Task Scheduler if you wanted to automate the task at a certain date/time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also found the &lt;A href="http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340"&gt;Server Admin toolbox&lt;/A&gt; (mentioned above by Blake) to be another good interface driven way of interacting with ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a screenshot of the tools available in both, with the 'Create User' and 'Delete User' tools highlighted...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="servertools.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/106674_servertools.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 15:50:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431821#M33966</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2015-06-04T15:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ArcGIS Server User through Python Script</title>
      <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431822#M33967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt.&amp;nbsp; Unfortunately the Create/Delete user in the ArcRest toolkit was created only for ArcGIS Online Users - not users from an onsite ArcGIS Server.&amp;nbsp; Unless I'm missing something (which is definitely possible!), I think it might take quite a bit of re-engineering to make it work for ArcGIS Server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Server Admin Toolkit does look like it has nice tools for managing ArcGIS Server, but doesn't seem to have anything for managing users. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 17:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431822#M33967</guid>
      <dc:creator>RyanN</dc:creator>
      <dc:date>2015-06-04T17:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ArcGIS Server User through Python Script</title>
      <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431823#M33968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000n3000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//0017000000n3000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; to revoke the users privileges.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431823#M33968</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2015-06-04T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ArcGIS Server User through Python Script</title>
      <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431824#M33969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, &lt;SPAN style="font-family: 'courier new', courier;"&gt;arcpy.ChangePrivileges_management()&lt;/SPAN&gt; is just for database users in SDE, not ArcGIS Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 19:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431824#M33969</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-06-04T19:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ArcGIS Server User through Python Script</title>
      <link>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431825#M33970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to delete users en masse from an ArcGIS Server site that uses the ArcGIS Server identity store is to access the machine the server is installed on - from here, go to \config-store\security\users.&amp;nbsp; Select the users that need removal/deletion from the site.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is not at all an elegant solution, but it is quick and easy, and seemingly accomplishes what I need with out any adverse side effects.&amp;nbsp; I'd be curious if anyone from esri or otherwise could come up with a reason why exactly this might be an ill-advised hack other than it not being good practice to modify anything manually in the config store of an arcgis server? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 20:05:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-arcgis-server-user-through-python-script/m-p/431825#M33970</guid>
      <dc:creator>RyanN</dc:creator>
      <dc:date>2015-06-04T20:05:30Z</dc:date>
    </item>
  </channel>
</rss>

