<?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: Cannot log in with different ArcGIS Portal user account using ArcGIS Python API in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-log-in-with-different-arcgis-portal-user/m-p/801146#M2076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does your Portal use Integrated Windows Authentication? If so, try replacing the URL with the fully qualified domain name and port number. (&lt;A href="https://portalMachine.domain:7443/arcgis/home"&gt;https://portalMachine.domain:7443/arcgis/home&lt;/A&gt;) You should not be automatically authenticated as the viewer account when using this URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Dec 2019 16:09:34 GMT</pubDate>
    <dc:creator>GeoJosh</dc:creator>
    <dc:date>2019-12-31T16:09:34Z</dc:date>
    <item>
      <title>Cannot log in with different ArcGIS Portal user account using ArcGIS Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-log-in-with-different-arcgis-portal-user/m-p/801145#M2075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I have an ArcGIS Portal log in account (viewer account) in an enterprise GIS infrastructure and want to use the ArcGIS Python API to connect with a separate admin account to be able to produce reports on the ArcGIS Portal instance (layers being used in web maps, user last login stats etc).&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;When trying to connect using an admin account, it automatically connects with my viewer account (I am assuming my account is somehow automatically authorised within my network).&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;How am I able to explicitly log in with a different account using the ArcGIS Python API?&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;My script to connect is below:&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcgis.gis&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;GIS&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;getpass&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;password&amp;nbsp;=&amp;nbsp;getpass.getpass(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Enter&amp;nbsp;password:&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;gis&amp;nbsp;=&amp;nbsp;GIS(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"https://server/portal/home"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"admin_account"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;password)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #dcdcaa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Connected&amp;nbsp;as:&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;+&amp;nbsp;gis.properties.user.username&amp;nbsp;+&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&amp;nbsp;on&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;+&amp;nbsp;gis.properties.customBaseUrl)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #dcdcaa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(gis.properties.user)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 11:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-log-in-with-different-arcgis-portal-user/m-p/801145#M2075</guid>
      <dc:creator>ChrisBuckmaster2</dc:creator>
      <dc:date>2019-12-31T11:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot log in with different ArcGIS Portal user account using ArcGIS Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-log-in-with-different-arcgis-portal-user/m-p/801146#M2076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does your Portal use Integrated Windows Authentication? If so, try replacing the URL with the fully qualified domain name and port number. (&lt;A href="https://portalMachine.domain:7443/arcgis/home"&gt;https://portalMachine.domain:7443/arcgis/home&lt;/A&gt;) You should not be automatically authenticated as the viewer account when using this URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 16:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-log-in-with-different-arcgis-portal-user/m-p/801146#M2076</guid>
      <dc:creator>GeoJosh</dc:creator>
      <dc:date>2019-12-31T16:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot log in with different ArcGIS Portal user account using ArcGIS Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-log-in-with-different-arcgis-portal-user/m-p/801147#M2077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brilliant that worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using the URL path&amp;nbsp;&lt;A href="https://civvmi-esriapp1.unifiedgov.co.uk/portal/home/" style="color: #2989c5; text-decoration: none;" title="https://civvmi-esriapp1.unifiedgov.co.uk/portal/home/"&gt;https://civvmi-esriapp1.unifiedgov.co.uk/portal/home/&lt;/A&gt;&amp;nbsp;but I changed it to&amp;nbsp;&lt;A class="" href="https://civvmi-esriapp1.unifiedgov.co.uk/portal/home/" style="color: #2989c5; text-decoration: none;" title="https://civvmi-esriapp1.unifiedgov.co.uk/portal/home/"&gt;https://civvmi-esriapp1.unifiedgov.co.uk:7443/arcgis/home/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearly using 'portal' instead of 'arcgis' was an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2020 08:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-log-in-with-different-arcgis-portal-user/m-p/801147#M2077</guid>
      <dc:creator>ChrisBuckmaster2</dc:creator>
      <dc:date>2020-01-02T08:24:31Z</dc:date>
    </item>
  </channel>
</rss>

