<?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 Does disabling 'ArcGIS login' prevent Python from using built-in accounts? in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/does-disabling-arcgis-login-prevent-python-from/m-p/1317743#M13910</link>
    <description>&lt;P&gt;I was advised that if we disable "ArcGIS login" in the Security settings of ArcGIS Enterprise Portal that we would still be able to programmatically used built-in accounts.&amp;nbsp; In other words disabling that setting would remove the ArcGIS login option from the login page, but would not actually disable the built-in accounts.&lt;/P&gt;&lt;P&gt;However, when using the ArcGIS Python API, code that connects using a built-in account stops working when we disable that setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was I given bad advice, or is there some trick to getting the Python API to connect when that setting is disabled?&amp;nbsp;&lt;/P&gt;&lt;P&gt;We really don't want users to see that option for logging in because we get help tickets all the time when they chose that option instead of the button for Single Sign on.&amp;nbsp; &amp;nbsp;Disabling that option makes a better user experience, but we still need back end Python jobs to be able to log in too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 23:44:16 GMT</pubDate>
    <dc:creator>MichaelJenkins</dc:creator>
    <dc:date>2023-08-10T23:44:16Z</dc:date>
    <item>
      <title>Does disabling 'ArcGIS login' prevent Python from using built-in accounts?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/does-disabling-arcgis-login-prevent-python-from/m-p/1317743#M13910</link>
      <description>&lt;P&gt;I was advised that if we disable "ArcGIS login" in the Security settings of ArcGIS Enterprise Portal that we would still be able to programmatically used built-in accounts.&amp;nbsp; In other words disabling that setting would remove the ArcGIS login option from the login page, but would not actually disable the built-in accounts.&lt;/P&gt;&lt;P&gt;However, when using the ArcGIS Python API, code that connects using a built-in account stops working when we disable that setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was I given bad advice, or is there some trick to getting the Python API to connect when that setting is disabled?&amp;nbsp;&lt;/P&gt;&lt;P&gt;We really don't want users to see that option for logging in because we get help tickets all the time when they chose that option instead of the button for Single Sign on.&amp;nbsp; &amp;nbsp;Disabling that option makes a better user experience, but we still need back end Python jobs to be able to log in too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 23:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/does-disabling-arcgis-login-prevent-python-from/m-p/1317743#M13910</guid>
      <dc:creator>MichaelJenkins</dc:creator>
      <dc:date>2023-08-10T23:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Does disabling 'ArcGIS login' prevent Python from using built-in accounts?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/does-disabling-arcgis-login-prevent-python-from/m-p/1319236#M13926</link>
      <description>&lt;P&gt;In case anyone has the same question and finds this post, here is the answer.&amp;nbsp; &lt;STRONG&gt;Yes&lt;/STRONG&gt;, you can disable "ArcGIS Login" so users do not have the ability to log in that way &lt;STRONG&gt;and&lt;/STRONG&gt; still use a built-in account for back end Python scripts.&lt;/P&gt;&lt;P&gt;The key is to add an argument to the connection line that forces it to use a token instead of OAuth.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#gis" target="_blank" rel="noopener"&gt;arcgis.gis module | ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;use_gen_token&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Optional Boolean. The default is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;False. Uses generateToken login over OAuth2 login.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 16 Aug 2023 17:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/does-disabling-arcgis-login-prevent-python-from/m-p/1319236#M13926</guid>
      <dc:creator>MichaelJenkins</dc:creator>
      <dc:date>2023-08-16T17:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Does disabling 'ArcGIS login' prevent Python from using built-in accounts?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/does-disabling-arcgis-login-prevent-python-from/m-p/1420060#M15105</link>
      <description>&lt;P&gt;Wooooo! Thank you for the follow-up&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11924"&gt;@MichaelJenkins&lt;/a&gt;&amp;nbsp;this worked for me. One thing though, with &lt;STRONG&gt;use_gen_token&lt;/STRONG&gt; you can't use &lt;STRONG&gt;profile&lt;/STRONG&gt; kwarg, which i guess makes sense as you are requiring it to get a new token each time, but this really helps with scripts that don't rely on SAML.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 18:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/does-disabling-arcgis-login-prevent-python-from/m-p/1420060#M15105</guid>
      <dc:creator>JonathanDandois</dc:creator>
      <dc:date>2024-05-07T18:28:53Z</dc:date>
    </item>
  </channel>
</rss>

