<?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: Python API can't connect to portal with windows authentication in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792271#M1623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have come across a case when the portal was actually configured to use SAML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To rule that out, can you try the following:&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;Log into your web GIS (ArcGIS Online organization or ArcGIS Enterprise) in the browser&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Go to Content tab&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Click '+ Add Item &amp;gt; An Application' menu&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Add an application:&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;Type: Application&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Title: Python&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Tags: python&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;On the Item details page of this newly created application, navigate to Settings tab&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Click the Registered Info button. It's towards the bottom of the page.&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;This will show an App ID. This is your client id and needs to be passed in as the client_id parameter when constructing a GIS object. You need this in your Python code to log in&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;test_client_id = 'OGz1I2eoO8dO0ii2' #replace with your client id&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN&gt;gis = GIS('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fyour" rel="nofollow" target="_blank"&gt;https://your&lt;/A&gt;&lt;SPAN&gt; portal url', client_id=test_client_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;gis.users.me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2017 18:08:43 GMT</pubDate>
    <dc:creator>RohitSingh2</dc:creator>
    <dc:date>2017-09-07T18:08:43Z</dc:date>
    <item>
      <title>Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792270#M1622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to this API, I tried it with ArcGIS Online it works fine. But when I try to connect to our local ArcGIS portal, it doesn't work. Can anybody kindly point me to the right direction?&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; I highly suspect that the problem is the API can't pick up my windows credentials which is required to login the portal.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our portal is using IWA authentication, and&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Web-tier-authentication-secured-with-IWA"&gt;this document&lt;/A&gt;&amp;nbsp;for IWA points to not using a username or password:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;It looks like there are some additional requirements for using IWA and the ArcGIS Python API:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;EM&gt;"If your portal is configured to pick up your Windows credeintials using NTLM or Kerberos, you can omit passing in the username and password. The ArcGIS Python API is able to figure out when the GIS is using Windows authentication and picks the login credentials from the currently running process providing a seamless and secure login experience. Windows authentication only works on the Windows OS and requires pywin32 and kerberos-sspi python packages."&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Please see the screen dump for details: (&lt;SPAN style="font-size: 22px;"&gt;&lt;STRONG&gt;click to zoom in&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG __jive_id="370141" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/370141_Capture.GIF" style="width: 620px; height: 659px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 01:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792270#M1622</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2017-09-04T01:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792271#M1623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have come across a case when the portal was actually configured to use SAML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To rule that out, can you try the following:&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;Log into your web GIS (ArcGIS Online organization or ArcGIS Enterprise) in the browser&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Go to Content tab&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Click '+ Add Item &amp;gt; An Application' menu&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Add an application:&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;Type: Application&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Title: Python&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Tags: python&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;On the Item details page of this newly created application, navigate to Settings tab&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Click the Registered Info button. It's towards the bottom of the page.&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;This will show an App ID. This is your client id and needs to be passed in as the client_id parameter when constructing a GIS object. You need this in your Python code to log in&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;test_client_id = 'OGz1I2eoO8dO0ii2' #replace with your client id&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN&gt;gis = GIS('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fyour" rel="nofollow" target="_blank"&gt;https://your&lt;/A&gt;&lt;SPAN&gt; portal url', client_id=test_client_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;gis.users.me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 18:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792271#M1623</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-09-07T18:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792272#M1624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rohit,&lt;/P&gt;&lt;P&gt;Thank you so much for your reply.&lt;/P&gt;&lt;P&gt;I tested as you suggested, but the problem remains. I double checked with the administrator, we are using IWA, not SAML.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="370278" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/370278_Capture000.PNG" style="width: 620px; height: 232px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I not only tested in Jupyter notebook, I also tried in python IDE (Wing IDE) to make direct connections to the portal, but it was not successful.&lt;/P&gt;&lt;P&gt;Surely there is something wrong on our server, just don't know where to look at. I checked it with this document,&amp;nbsp;&lt;A class="link-titled" href="http://server.arcgis.com/en/portal/latest/administer/windows/use-integrated-windows-authentication-with-your-portal.htm" title="http://server.arcgis.com/en/portal/latest/administer/windows/use-integrated-windows-authentication-with-your-portal.htm"&gt;Use Integrated Windows Authentication with your portal—Portal for ArcGIS (10.5.x) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;,&amp;nbsp;nothing looks suspicious in the server settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: &amp;nbsp;I just tried the python window in ArcGIS Pro, I can login our portal from there omitting the username and password ---- and I print out the user information, it seems the API picked up my windows login inside of ArcGIS Pro. Python window in Pro is not the ideal environment for me to do my tasks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 00:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792272#M1624</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2017-09-08T00:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792273#M1625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After I overwrote the arcgis related packages under&amp;nbsp;anaconda3 using the packages under ArcGIS pro, everything seems working fine.&lt;/P&gt;&lt;P&gt;The packages installed by conda is slightly different from those installed by ArcGIS Pro...&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="370324" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/370324_Capture.PNG" style="width: 620px; height: 512px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't know why, but It's working, I am happy &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Update: the working version is version 1.0.1 on Python 3.5 .... I am missing out lots of latest features tho.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 07:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792273#M1625</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2017-09-08T07:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792274#M1626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, it is a bug for 1.2.0, 1.2.1, 1.2.2, 1.2.3 and finally addressed in the latest release of 1.2.4! well, sort of...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEwODA2Mw==" title="http://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEwODA2Mw=="&gt;BUG-000108063: ArcGIS API for Python is unable to connect to Portal..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bug was only&amp;nbsp;submitted&amp;nbsp;on Sep 15 and I reported the issue as a comment on the 1.2.0 release announcement on Sep 11. coincident?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 02:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792274#M1626</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2017-10-17T02:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792275#M1627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/10807"&gt;simo xu&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I may be experiencing a similar issue. Can you provide some detail on what you meant when you said "&lt;SPAN style="background-color: #ffffff;"&gt;I overwrote the arcgis related packages under&amp;nbsp;anaconda3 using the packages under ArcGIS pro"? I don't currently have Anaconda3 installed. I have Anaconda 2, and toggle between environments with settings in my IDE. Any assistance would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;David&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 21:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792275#M1627</guid>
      <dc:creator>DavidJones12</dc:creator>
      <dc:date>2018-08-13T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792276#M1628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Python API requires python 3.5+&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 21:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792276#M1628</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2018-08-13T21:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792277#M1629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, that's not my problem. I have multiple Python environments and successfully switch between them and have successfully used the Python API for other actions. I'm trying to connect to a secure ArcGIS Enterprise service and having no luck. I've successfully accessed secure hosted services before, but just updated Pro and wondering if something went awry. I was curious what the original poster meant by replacing arcgis related packages under Anaconda3 using the packages under ArcGIS Pro. I'm not seeing an Anaconda3 set of things under my Pro folder, and don't have A3 installed. I'm assuming the original poster did have A3 installed and worked to get the API dependencies setup with it also. Not sure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 21:19:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792277#M1629</guid>
      <dc:creator>DavidJones12</dc:creator>
      <dc:date>2018-08-13T21:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792278#M1630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did the same thing as he did to get it to work with&amp;nbsp;an Aneconda install.&amp;nbsp; One thing you could do is just use the ArcGIS Pro install of python and add the packages for the python API (can event do with the Pro tools).&amp;nbsp; What I did was copy the files in the /lib folder from a pro installation to the /lib folder in my Anecoda install.&amp;nbsp; Not sure why but this fixed the issue with connecting using single sign on AD.&amp;nbsp; I have had weird behavior with install, sometimes it has worked right off the bat, another I had to do as the original poster describes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 21:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792278#M1630</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2018-08-13T21:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792279#M1631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Light bulb! Thanks. That's a good idea. I'll give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 21:49:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792279#M1631</guid>
      <dc:creator>DavidJones12</dc:creator>
      <dc:date>2018-08-13T21:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792280#M1632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry it is a bit vague to say&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;I overwrote the arcgis related packages under&amp;nbsp;anaconda3 using the packages under ArcGIS pro", and even myself is a little confused when looking at this statement now.I had to find my note for that period of time to help me to recall the stuff I was talking about. I'll try my best to explain...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;Firstly, I am surprised that people are still having this issue --- I thought it was solved long time ago. At that time, the latest API version was 2.3.1, and the latest Python was 3.6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;Secondly, the motivation for me to replace the arcgis package in Anaconda is that the arcgis python environment was working in Pro 2.0 at that moment. By the way, Anaconda version much less a problem than the arcgis package version itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;Thirdly, Python interpreter version matters in this case. I tried out that Python 3.5.x was the working version for the Python API for ArcGIS 1.0.1.&amp;nbsp; And Python 3.6 didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;Last but not least, I didn't want to lose the advanced functionalities in the Python API for ArcGIS 2.x as a result of replacing it with lower version installed with ArcGIS Pro 2.0, I used an alternative approach to change the source code in the latest Python API version 2.3.1 to make it working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;Here are the relevant notes from my old notebook, kind of fun for me to read these paper notes (nostalgia).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;Sorry for the scribbles --- they were only meant to be quick reminders for myself really, and without those notes I will never remember what I did 11 months ago &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #ff0000;"&gt;Cause:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG __jive_id="418652" alt="Issue and cause" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418652_note1.PNG" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #ff0000;"&gt;Solution:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG __jive_id="418653" alt="Solution" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418653_note2.PNG" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #ff0000;"&gt;Python 3.6 issue:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG __jive_id="418654" alt="Bug in Python 3.6" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418654_note3.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #ff0000;"&gt;Follow up and some thought&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&lt;IMG __jive_id="418655" alt="Follow up and recommendation" class="image-4 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418655_note4.PNG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 02:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792280#M1632</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2018-08-14T02:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792281#M1633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a script running for almost a year that logs in to AGO and overwrites a feature service but it hasn't worked for about a month now. I'm thinking that the failures coincide with the most recent Pro upgrade, but I'm not sure. It now fails with an ArcGIS Pro crash message even though Pro isn't actually running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 12:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792281#M1633</guid>
      <dc:creator>ScottStopyak</dc:creator>
      <dc:date>2019-07-30T12:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792282#M1634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems you are using ArcGIS Pro to authorize your Python API. In this case, the API will connect to the active portal&amp;nbsp; set in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Connecting-through-ArcGIS-Pro"&gt;https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Connecting-through-ArcGIS-Pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of ArcGIS API for Python are you using? the latest version supports IWA better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 00:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792282#M1634</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2019-07-31T00:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792283#M1635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are saying that one cannot run the Python API on a machine that does not have ArcGIS Pro installed?&amp;nbsp; That&amp;nbsp;is a a very limiting restriction.&amp;nbsp; Logging into Portal should provide the required license.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 14:38:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792283#M1635</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-07-31T14:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python API can't connect to portal with windows authentication</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792284#M1636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS API for Python does not require a license, but it is built for ArcGIS Portal and ArcGIS Online&amp;nbsp;which are licensed. ArcGIS Pro has ArcGIS API for Python installed along side with Arcpy, which brings much more powerful capacities when dealing with local GIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 23:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-can-t-connect-to-portal-with-windows/m-p/792284#M1636</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2019-11-11T23:35:04Z</dc:date>
    </item>
  </channel>
</rss>

