<?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: Pass AD Login from arcgis to arcpy in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1177612#M7429</link>
    <description>&lt;P&gt;Any update on this issue? I'd also like to leverage oauth/tokens for arcpy and I'm not seeing it in the documentation anywhere.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 16:56:32 GMT</pubDate>
    <dc:creator>meloking_PNM</dc:creator>
    <dc:date>2022-05-26T16:56:32Z</dc:date>
    <item>
      <title>Pass AD Login from arcgis to arcpy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/852979#M3907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to pass my AD login from arcgis to arcpy?&amp;nbsp; The arcpy package only supports built in accounts, and I want to only have 1 account per each of my users in enterprise/agol.&amp;nbsp; Currently, have built in for running arcpy, and for arcgis can use either enterprise login or a built in with arcgis.&amp;nbsp; For a lot of my tasks, I only need arcpy, but wish to utilize the enterprise login support from arcgis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 21:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/852979#M3907</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2020-01-23T21:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass AD Login from arcgis to arcpy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/852980#M3908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ted,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to do what you seek.&amp;nbsp; This document can help with getting your Python API set to utilize authentication methods other than built-in:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#User-authentication-with-OAuth-2.0" title="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#User-authentication-with-OAuth-2.0"&gt;Working with different authentication schemes | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OAuth2.0 = Enterprise Logins/SAML.&amp;nbsp; I hope the documentation is helpful for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 00:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/852980#M3908</guid>
      <dc:creator>TrevorNickolai</dc:creator>
      <dc:date>2020-01-24T00:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pass AD Login from arcgis to arcpy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/852981#M3909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The doc is using the arcgis api with other authentication methods, I want to pass that arcgis login to arcpy and use arcpy in my work, not use arcgis.&amp;nbsp; I am just wanting to use the AD login from arcgis, since arcpy does not have a way to use AD accounts to authorize.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2020 01:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/852981#M3909</guid>
      <dc:creator>TedCronin</dc:creator>
      <dc:date>2020-01-25T01:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pass AD Login from arcgis to arcpy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1009641#M5321</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm experiencing the same issue. There is no support for Enterprise login using OAuth2.0 via ArcPy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use Arcpy to overwrite feature layers to automate the refresh but because it doesn't support Enterprise Login via ArcPy, I need to sign in manually and check the 'Sign In Automatically' option in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;However, for whatever reason, sometimes the user gets signed out of ArcGIS Pro which causes the script to break.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be great if there is an option for me to pass a token of some sort through ArcPy.&lt;/P&gt;&lt;P&gt;arcpy.SignInToPortal(arcpy.GetActivePortalURL(),token='')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 04:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1009641#M5321</guid>
      <dc:creator>WengNg2</dc:creator>
      <dc:date>2020-12-15T04:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pass AD Login from arcgis to arcpy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1177612#M7429</link>
      <description>&lt;P&gt;Any update on this issue? I'd also like to leverage oauth/tokens for arcpy and I'm not seeing it in the documentation anywhere.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 16:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1177612#M7429</guid>
      <dc:creator>meloking_PNM</dc:creator>
      <dc:date>2022-05-26T16:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pass AD Login from arcgis to arcpy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1177812#M7432</link>
      <description>&lt;P&gt;I think we're out of luck :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/support-for-enterprise-login-in-arcpy/idc-p/1154985#M19054" target="_self"&gt;https://community.esri.com/t5/arcgis-pro-ideas/support-for-enterprise-login-in-arcpy/idc-p/1154985#M19054&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is up to ESRI to provide a better auth mechanism in Arcpy for users using SAML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You either use a built-in account of the sign-in manually via ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 01:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1177812#M7432</guid>
      <dc:creator>WengNg2</dc:creator>
      <dc:date>2022-05-27T01:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pass AD Login from arcgis to arcpy</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1634476#M11514</link>
      <description>&lt;P&gt;In the ArcGIS Python API you can use something as follows,&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = GIS("https://domain.com.sa/arcgis", client_id='&amp;lt;your-app-id&amp;gt;')
print("Successfully logged in as: " + gis.properties.user.username)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll initially see the follwoing output&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Please sign in to your GIS and paste the code that is obtained below.
If a web browser does not automatically open, please navigate to the URL below yourself instead.
Opening web browser to navigate to: https://domain.com/arcgis/sharing/rest/oauth2/authorize?response_type=code&amp;amp;client_id=&amp;lt;your-app-id&amp;gt;&amp;amp;redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&amp;amp;state=&amp;lt;some-random-code&amp;gt;&amp;amp;allow_verification=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will then be redirected to the website with the code once you are succesfully authorized. Copy that code and paste it into the input windows and hit enter. You'll then see the following message&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Successfully logged in as: user@domain.com&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 06:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/m-p/1634476#M11514</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2025-07-21T06:05:06Z</dc:date>
    </item>
  </channel>
</rss>

