<?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 ArcGIS Python API EnterpriseUsers functions won't work in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-enterpriseusers-functions-won-t/m-p/794622#M1732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been following some of the documentation at&amp;nbsp;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.admin.html?highlight=create%20user#arcgis.gis.admin.EnterpriseUsers.create" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.admin.html?highlight=create%20user#arcgis.gis.admin.EnterpriseUsers.create" rel="nofollow noopener noreferrer" target="_blank"&gt;arcgis.gis.admin module — arcgis 1.4.1 documentation&lt;/A&gt;&amp;nbsp;trying to modify users in my 10.6 Portal, but keep getting errors.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;admin &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; admin
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS

myPortal &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmyportal%2Fmywebadaptor" target="_blank"&gt;https://myportal/mywebadaptor&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"username"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"password"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; verify_cert&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
users &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; admin&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;EnterpriseUsers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmyportal%2Fmywebadaptor" target="_blank"&gt;https://myportal/mywebadaptor&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; myPortal&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
users&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"username"&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This returns a whole bunch of errors, but primarily HTTP Error 500.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have experience with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm primarily trying to do is update IDP usernames using this API, as documented in the EnterpriseUsers.update method, but the get method doesn't work either.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:09:43 GMT</pubDate>
    <dc:creator>Jay_Gregory</dc:creator>
    <dc:date>2021-12-12T09:09:43Z</dc:date>
    <item>
      <title>ArcGIS Python API EnterpriseUsers functions won't work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-enterpriseusers-functions-won-t/m-p/794622#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been following some of the documentation at&amp;nbsp;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.admin.html?highlight=create%20user#arcgis.gis.admin.EnterpriseUsers.create" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.admin.html?highlight=create%20user#arcgis.gis.admin.EnterpriseUsers.create" rel="nofollow noopener noreferrer" target="_blank"&gt;arcgis.gis.admin module — arcgis 1.4.1 documentation&lt;/A&gt;&amp;nbsp;trying to modify users in my 10.6 Portal, but keep getting errors.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;admin &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; admin
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS

myPortal &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmyportal%2Fmywebadaptor" target="_blank"&gt;https://myportal/mywebadaptor&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"username"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"password"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; verify_cert&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
users &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; admin&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;EnterpriseUsers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmyportal%2Fmywebadaptor" target="_blank"&gt;https://myportal/mywebadaptor&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; myPortal&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
users&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"username"&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This returns a whole bunch of errors, but primarily HTTP Error 500.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have experience with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm primarily trying to do is update IDP usernames using this API, as documented in the EnterpriseUsers.update method, but the get method doesn't work either.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-enterpriseusers-functions-won-t/m-p/794622#M1732</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2021-12-12T09:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API EnterpriseUsers functions won't work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-enterpriseusers-functions-won-t/m-p/1549890#M10781</link>
      <description>&lt;P&gt;Very belated, but you must access the "EnterpriseUsers" class differently&lt;/P&gt;&lt;LI-CODE lang="c"&gt;users = admin.security.enterpriseusers&lt;/LI-CODE&gt;&lt;P&gt;Then you can modify user properties&lt;/P&gt;&lt;LI-CODE lang="python"&gt;users.update("username", "idp_username")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Oct 2024 13:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-enterpriseusers-functions-won-t/m-p/1549890#M10781</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2024-10-18T13:23:40Z</dc:date>
    </item>
  </channel>
</rss>

