<?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 Login to AGOL using enterprise login with python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877164#M4965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went through &lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Enterprise-identity-store" rel="nofollow noopener noreferrer" target="_blank"&gt;this link&lt;/A&gt; in an effort to successfully login to AGOL using my enterprise account however, I am continually faced with invalid credentials error. The authorization to my enterprise account is windows authentications and hence I used my windows password. I am still unsuccessful. Any pointers would help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a built-in account, I am able to login successfully&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;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

insPortal &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;"portal-link"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; username &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'AGOL_uname'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'password'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Logged in as: "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;insPortal&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Login Succesful'&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 11:00:49 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T11:00:49Z</dc:date>
    <item>
      <title>Login to AGOL using enterprise login with python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877164#M4965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went through &lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Enterprise-identity-store" rel="nofollow noopener noreferrer" target="_blank"&gt;this link&lt;/A&gt; in an effort to successfully login to AGOL using my enterprise account however, I am continually faced with invalid credentials error. The authorization to my enterprise account is windows authentications and hence I used my windows password. I am still unsuccessful. Any pointers would help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a built-in account, I am able to login successfully&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;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

insPortal &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;"portal-link"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; username &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'AGOL_uname'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'password'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Logged in as: "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;insPortal&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Login Succesful'&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877164#M4965</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T11:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Login to AGOL using enterprise login with python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877165#M4966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey @&lt;A href="https://community.esri.com/migrated-users/333043" target="_blank"&gt;Sravanthi Murali&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing you can try is changing the part in red to&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;https://www.arcgis.com&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;
insPortal &lt;SPAN class=""&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;SPAN style="color: #ff0000;"&gt;portal-link&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; username &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'AGOL_uname'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; password &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'password'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try that and let me know how it goes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;EM&gt;If this answer has helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877165#M4966</guid>
      <dc:creator>BenTurrell</dc:creator>
      <dc:date>2021-12-12T11:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Login to AGOL using enterprise login with python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877166#M4967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ben,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the pointer. Unfortunately, it does not go through &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;I used a workaround by logging into AGOL using ArcGIS Pro and called my python script to get access from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following&lt;/P&gt;&lt;P&gt;gis = GIS('pro')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 08:17:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877166#M4967</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-04T08:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Login to AGOL using enterprise login with python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877167#M4968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using Pro to log in is a neat trick&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/login-to-agol-using-enterprise-login-with-python/m-p/877167#M4968</guid>
      <dc:creator>AdrianHughes2</dc:creator>
      <dc:date>2020-10-06T14:37:41Z</dc:date>
    </item>
  </channel>
</rss>

