<?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: Enterprise Python Authentication in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023172#M5503</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is returned when logging in via the OAuth2 application authentication flow with the GIS() class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="customroles.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5247i60A4EA0C49C0F9E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="customroles.PNG" alt="customroles.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;we have custom roles which no longer allow us to interact with the API after upgrading to 10.8 - something that I think doesn't make sense, because we should only be able to change / add / update content that is owned by us anyway right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you ever ran a script that was triggered automatically? how did you handle logging into the API? were you using SAML? which type of authentication scheme would you recommend?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 20:21:00 GMT</pubDate>
    <dc:creator>zx</dc:creator>
    <dc:date>2021-02-03T20:21:00Z</dc:date>
    <item>
      <title>Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1022873#M5499</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;referring to this page&amp;nbsp;&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;&amp;nbsp;what is meant by "built-in identity provider" in this statement:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noninteractive.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5193i8E0D6BEB23254849/image-size/large?v=v2&amp;amp;px=999" role="button" title="noninteractive.PNG" alt="noninteractive.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to interact from python with feature layers that are stored on my enterprise account, we use OAuth2 with a IDP. I can't use the python API because I am not an administrator.. should I login with he REST API?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 02:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1022873#M5499</guid>
      <dc:creator>zx</dc:creator>
      <dc:date>2021-02-03T02:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1022890#M5500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215833"&gt;@zx&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The buil-in identity provider is the login system that comes by default e.g. when you log in&amp;nbsp; using the below part this is using the buil-in identity provider when domain authentication is not setup.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HenryLindemann_0-1612331531505.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5195iD7C6992A71695F9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HenryLindemann_0-1612331531505.png" alt="HenryLindemann_0-1612331531505.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the ArcGIS API for Python .&lt;/P&gt;&lt;P&gt;You can still use it you will just have access to your own content when you are not Administrator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 05:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1022890#M5500</guid>
      <dc:creator>HenryLindemann</dc:creator>
      <dc:date>2021-02-03T05:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023030#M5501</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/400739"&gt;@HenryLindemann&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for responding so quickly! What authentication method do you suggest for scripts that need to run in the background / are triggered from another process within an Enterprise Org? the gis.GIS class with application authentication prompts the user for OAuth2 like interaction, but that wont be possible with an automated script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 16:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023030#M5501</guid>
      <dc:creator>zx</dc:creator>
      <dc:date>2021-02-03T16:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023144#M5502</link>
      <description>&lt;P&gt;Can you elaborate on:&lt;/P&gt;&lt;BLOCKQUOTE&gt;I can't use the python API because I am not an administrator&lt;/BLOCKQUOTE&gt;&lt;P&gt;You don't have to be an administrator to use the ArcGIS API for Python.&amp;nbsp; "Regular" users can and do use it to interact with their AGOL or ArcGIS Enterprise/Portal content.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 19:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023144#M5502</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-02-03T19:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023172#M5503</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is returned when logging in via the OAuth2 application authentication flow with the GIS() class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="customroles.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5247i60A4EA0C49C0F9E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="customroles.PNG" alt="customroles.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;we have custom roles which no longer allow us to interact with the API after upgrading to 10.8 - something that I think doesn't make sense, because we should only be able to change / add / update content that is owned by us anyway right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you ever ran a script that was triggered automatically? how did you handle logging into the API? were you using SAML? which type of authentication scheme would you recommend?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 20:21:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023172#M5503</guid>
      <dc:creator>zx</dc:creator>
      <dc:date>2021-02-03T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023302#M5504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215833"&gt;@zx&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you give me some more information, maybe a sample of you script also do you log in with a domain account automatically e.g. SSO&amp;nbsp; or do you use your phone, some screen shots will help me understand.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 06:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023302#M5504</guid>
      <dc:creator>HenryLindemann</dc:creator>
      <dc:date>2021-02-04T06:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023466#M5505</link>
      <description>&lt;P&gt;What code, specifically, is generating that error?&amp;nbsp; You say you upgraded to 10.8 and it broke, but it used to work with 10.7.x?&amp;nbsp; Also, have you changed versions of Pro from when you tested before and testing now against 10.8?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 16:22:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023466#M5505</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-02-04T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023467#M5506</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215833"&gt;@zx&lt;/a&gt;, I moved your post from Python to ArcGIS API for Python because this involves the said API and not ArcPy.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 16:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1023467#M5506</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-02-04T16:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1024154#M5510</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/400739"&gt;@HenryLindemann&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We use SSO with Microsoft. Im using the API for Python, Im curious if its possible to log in with 0 user interaction when OAuth2.0 is configured. Im talking about simple things like searching content on the portal, basic interactions with the API through python, just automated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 18:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1024154#M5510</guid>
      <dc:creator>zx</dc:creator>
      <dc:date>2021-02-06T18:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1024156#M5511</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gis = GIS('myportalURL', client_id = 'myClientID')&lt;/P&gt;&lt;P&gt;this code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I know that this seems to be a permissions issue, Im just wondering when Single Sign On is configured (OAuth2.0), what is the optimal route to log in to the API automatically, with zero User Interaction? this particular flow requires the user to paste the authorize code to get a token. but if I need to log in automatically that will not be possible.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 19:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1024156#M5511</guid>
      <dc:creator>zx</dc:creator>
      <dc:date>2021-02-06T19:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1024274#M5520</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215833"&gt;@zx&lt;/a&gt;, so it looks like you are using SAML with SAML you will always have the token that you have to past in and for automation you have to use a built-in account.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HenryLindemann_4-1612766189829.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5458iE0C4AF22851884C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HenryLindemann_4-1612766189829.png" alt="HenryLindemann_4-1612766189829.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if your login looks something like this blue button for SAML e.g. you windows and a ArcGIS login below then you have mixed mode setup for portal, otherwise you only have SAML.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HenryLindemann_1-1612765568078.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5455i501163CE955170E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HenryLindemann_1-1612765568078.png" alt="HenryLindemann_1-1612765568078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;your admin can find the setting under security if they are willing to turn mixed mode on.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HenryLindemann_2-1612765899193.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5456i88A56FBCC6DA5631/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HenryLindemann_2-1612765899193.png" alt="HenryLindemann_2-1612765899193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you have mixed mode then ask you company to create a normal portal user not SAML then move the content there and login normally&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HenryLindemann_3-1612766045570.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5457iBEE8AFFC372B6FAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HenryLindemann_3-1612766045570.png" alt="HenryLindemann_3-1612766045570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Windows Authentication IIS&lt;/P&gt;&lt;P&gt;```python```&lt;/P&gt;&lt;P&gt;&amp;nbsp;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("https://your_dns/portal")&lt;BR /&gt;print(gis.version)&lt;/P&gt;&lt;P&gt;```python```&lt;/P&gt;&lt;P&gt;Built-In&amp;nbsp;&lt;/P&gt;&lt;P&gt;```python```&lt;/P&gt;&lt;P&gt;&amp;nbsp;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("https://your_dns/portal",&amp;nbsp; username,&amp;nbsp; password)&lt;BR /&gt;print(gis.version)&lt;/P&gt;&lt;P&gt;```python```&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 06:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1024274#M5520</guid>
      <dc:creator>HenryLindemann</dc:creator>
      <dc:date>2021-02-08T06:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Python Authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1624797#M11458</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;gis = GIS(ESRI_PORTAL_URL, api_key=ESRI_API_KEY)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gis =GIS(ESRI_PORTAL_URL, client_id=ESRI_CLIENT_ID)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gis = GIS(ESRI_PORTAL_URL, ESRI_USER, ESRI_PWD)&lt;BR /&gt;&lt;BR /&gt;I have tried all these combinations and nothing seems to be working.&amp;nbsp;&lt;BR /&gt;Has anybody figured this out?&lt;BR /&gt;I am able to access the webmap with CRUD operations via REST API when the webmap is public , but when it is setup at the organization level , I cannot do those operations.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Jun 2025 19:41:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/enterprise-python-authentication/m-p/1624797#M11458</guid>
      <dc:creator>HariniS</dc:creator>
      <dc:date>2025-06-18T19:41:41Z</dc:date>
    </item>
  </channel>
</rss>

