<?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: JSONDecodeError when using arcgis.gis.admin.EnterpriseUsers in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092553#M6547</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/418214"&gt;@ChrisPy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When connecting using an enterprise user account from an Active Directory, specify your username as&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;domain\\username&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;You can use something like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;print("\n\nPortal-tier Authentication with LDAP - enterprise user")
gisldap = GIS("https://portalname.domain.com/webadapter_name", "AVWORLD\\Publisher", "password")
print("Logged in as: " + gisldap.properties.user.username)
# prints all the users from AD
gisldap.users.search()
# OR 
gisldap.users.search(query="@AVWORLD")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you also have the option to query:&lt;/P&gt;&lt;PRE&gt;gisldap&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;users&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;(&lt;/SPAN&gt;
    query&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;None&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    sort_field&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;'username'&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    sort_order&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;'asc'&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    max_users&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;100&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    outside_org&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;False&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    exclude_system&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;False&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    user_type&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;None&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    role&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;None&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;======================================================================&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please give a like if helpful and Accept as Solution if it's answered your query.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 03:00:50 GMT</pubDate>
    <dc:creator>MehdiPira1</dc:creator>
    <dc:date>2021-08-26T03:00:50Z</dc:date>
    <item>
      <title>JSONDecodeError when using arcgis.gis.admin.EnterpriseUsers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092464#M6544</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Im running into a bit of an issue, same with others I saw so far already.&lt;/P&gt;&lt;P&gt;My goal is to use the module above to query our registered enterprise identity store for user details. I can successfully access the portal admin url shown below,&lt;/P&gt;&lt;P&gt;entUsers = admin.EnterpriseUsers(url="&lt;A href="https://xxxxxxxxxxxxx/portal/portaladmin" target="_blank" rel="noopener"&gt;https://xxxxxxxxxxxxx/portal/portaladmin&lt;/A&gt;", gis=gis)&lt;/P&gt;&lt;P&gt;but when i try to do a get or search, i get the error,&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;JSONDecodeError&lt;/SPAN&gt;: Expecting value: line 1 column 1 (char 0)&lt;/PRE&gt;&lt;P&gt;We are on Portal 10.8.1 and im using arcpro 2.6.4 python and jupyter notebook installs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 20:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092464#M6544</guid>
      <dc:creator>ChrisPy</dc:creator>
      <dc:date>2021-08-25T20:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: JSONDecodeError when using arcgis.gis.admin.EnterpriseUsers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092539#M6545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/418214"&gt;@ChrisPy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The following links are useful and show how to access identity store and administer users:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/administering-your-gis/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/administering-your-gis/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 01:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092539#M6545</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-08-26T01:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSONDecodeError when using arcgis.gis.admin.EnterpriseUsers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092543#M6546</link>
      <description>&lt;P&gt;Thanks for these inputs.&lt;/P&gt;&lt;P&gt;Im basically trying to query our enterprise identity store which taps into our AD. I can successfully create the GIS instance, But when using the admin.EnterpriseUsers class, it seems to fail. Are you trying to say my issue is related to the way Im logging into Portal?&lt;/P&gt;&lt;P&gt;thanks also&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 01:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092543#M6546</guid>
      <dc:creator>ChrisPy</dc:creator>
      <dc:date>2021-08-26T01:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: JSONDecodeError when using arcgis.gis.admin.EnterpriseUsers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092553#M6547</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/418214"&gt;@ChrisPy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When connecting using an enterprise user account from an Active Directory, specify your username as&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;domain\\username&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;You can use something like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;print("\n\nPortal-tier Authentication with LDAP - enterprise user")
gisldap = GIS("https://portalname.domain.com/webadapter_name", "AVWORLD\\Publisher", "password")
print("Logged in as: " + gisldap.properties.user.username)
# prints all the users from AD
gisldap.users.search()
# OR 
gisldap.users.search(query="@AVWORLD")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you also have the option to query:&lt;/P&gt;&lt;PRE&gt;gisldap&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;users&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;(&lt;/SPAN&gt;
    query&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;None&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    sort_field&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;'username'&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    sort_order&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;'asc'&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    max_users&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;100&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    outside_org&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;False&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    exclude_system&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;False&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    user_type&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;None&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
    role&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;None&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;======================================================================&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please give a like if helpful and Accept as Solution if it's answered your query.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 03:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092553#M6547</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-08-26T03:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSONDecodeError when using arcgis.gis.admin.EnterpriseUsers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092560#M6548</link>
      <description>&lt;P&gt;thanks again, but im not actually querying the registered portal users, what im after for is equivalent to this REST call,&lt;/P&gt;&lt;P&gt;&lt;A href="https://xxxxxxxx/portal/portaladmin/security/users/searchEnterpriseUsers?max=1000&amp;amp;filter=xxx&amp;amp;f=json&amp;amp;token=xxxxxxx" target="_blank"&gt;https://xxxxxxxx/portal/portaladmin/security/users/searchEnterpriseUsers?max=1000&amp;amp;filter=xxx&amp;amp;f=json&amp;amp;token=xxxxxxx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is what I believe the arcgis.gis.admin.EnterpriseUsers will allow me to do.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 03:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092560#M6548</guid>
      <dc:creator>ChrisPy</dc:creator>
      <dc:date>2021-08-26T03:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: JSONDecodeError when using arcgis.gis.admin.EnterpriseUsers</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092983#M6553</link>
      <description>&lt;P&gt;resolved my issue. Basically i just needed to expose admin capabilities thru my existing GIS instance,&lt;/P&gt;&lt;P&gt;gis = GIS(url)&lt;/P&gt;&lt;P&gt;gisadmin = gis.admin&lt;/P&gt;&lt;P&gt;EU = gisadmin.security.enterpriseusers&lt;/P&gt;&lt;P&gt;Now I can search our AD via portals identity store.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 01:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/jsondecodeerror-when-using-arcgis-gis-admin/m-p/1092983#M6553</guid>
      <dc:creator>ChrisPy</dc:creator>
      <dc:date>2021-08-27T01:02:27Z</dc:date>
    </item>
  </channel>
</rss>

