<?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: Add users in bulk to ArcGIS Server 10.1 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/add-users-in-bulk-to-arcgis-server-10-1/m-p/403076#M15609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I worked up a little python module that does this, and a few other administrative tasks, for me. It uses httplib, urllib to communicate with REST, json module to understand responses, time module to keep up with token validity, and ConfigParser module to handle a local config file for server names etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bulk of the addUser function is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params = urllib.urlencode({'f':'json', 'token':_token.get('token'), 'username' : uname, 'password': upwd})
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn = httplib.HTTPConnection(i.get('s'))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.request("POST", "/arcgis/admin/security/users/add", params, headers)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; response = conn.getresponse()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s = response.read()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = json.loads(s)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _responses.append({"server":i.get('s'),"result":data})
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:22:30 GMT</pubDate>
    <dc:creator>MattLane</dc:creator>
    <dc:date>2021-12-11T18:22:30Z</dc:date>
    <item>
      <title>Add users in bulk to ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/add-users-in-bulk-to-arcgis-server-10-1/m-p/403074#M15607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know of a way to add a large number of users to ArcGIS Server 10.1 that is faster than adding them one by one with Manager? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Mike S&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 20:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/add-users-in-bulk-to-arcgis-server-10-1/m-p/403074#M15607</guid>
      <dc:creator>MikeSchonlau</dc:creator>
      <dc:date>2013-04-25T20:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add users in bulk to ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/add-users-in-bulk-to-arcgis-server-10-1/m-p/403075#M15608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Write a program which does this for you.&amp;nbsp; I believe the ArcGIS Server API is exposed via REST and you should be able to drive it.&amp;nbsp; There should be Python examples if you want to use a high level language to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another alternative would be to figure out where ArcGIS Server is storing this information and update it there directly.&amp;nbsp; In my system the users are stored in a relational database so I just update the database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 11:34:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/add-users-in-bulk-to-arcgis-server-10-1/m-p/403075#M15608</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-04-26T11:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add users in bulk to ArcGIS Server 10.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/add-users-in-bulk-to-arcgis-server-10-1/m-p/403076#M15609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I worked up a little python module that does this, and a few other administrative tasks, for me. It uses httplib, urllib to communicate with REST, json module to understand responses, time module to keep up with token validity, and ConfigParser module to handle a local config file for server names etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bulk of the addUser function is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params = urllib.urlencode({'f':'json', 'token':_token.get('token'), 'username' : uname, 'password': upwd})
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn = httplib.HTTPConnection(i.get('s'))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.request("POST", "/arcgis/admin/security/users/add", params, headers)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; response = conn.getresponse()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s = response.read()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = json.loads(s)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _responses.append({"server":i.get('s'),"result":data})
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/add-users-in-bulk-to-arcgis-server-10-1/m-p/403076#M15609</guid>
      <dc:creator>MattLane</dc:creator>
      <dc:date>2021-12-11T18:22:30Z</dc:date>
    </item>
  </channel>
</rss>

