<?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: Use Python To Sign in to ArcGIS Online and a Local Portal in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/use-python-to-sign-in-to-arcgis-online-and-a-local/m-p/654375#M50948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Ellery, but unfortunately no matter what I do the function always seems to call the connected portal defined in ArcGIS Administrator (as seen in Fiddler).&amp;nbsp; I think I will be exploring the REST API or ArcObjects to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2014 12:51:16 GMT</pubDate>
    <dc:creator>Drew</dc:creator>
    <dc:date>2014-10-06T12:51:16Z</dc:date>
    <item>
      <title>Use Python To Sign in to ArcGIS Online and a Local Portal</title>
      <link>https://community.esri.com/t5/python-questions/use-python-to-sign-in-to-arcgis-online-and-a-local/m-p/654373#M50946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use arcpy to share a map package (.mpk) in both ArcGIS Online and our local Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been testing the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00540000001t000000"&gt;SignInToPortal_server (username, password, portal_url)&lt;/A&gt; function but the 'portal_url' parameter seems meaningless (see bold text in the below documentation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00540000001t000000"&gt;&lt;STRONG&gt; Docs for portal_url paramater&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Sign In To Portal tool reads the URL set in Desktop Administrator. &lt;STRONG&gt;Any user entered value is ignored&lt;/STRONG&gt;. The default value is URL for the ArcGIS portal currently chosen by the user in Desktop Administrator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I would like to do the below but I can not get around the settings pre-stored in Desktop Administrator....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SignInToPortal_server("username","password", "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # TO DO -&amp;gt;: Upload Map Package to ArcGIS.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SignOutFromPortal_server()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SignInToPortal_server("username","password", "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.myLocalPortalURL.com/" rel="nofollow" target="_blank"&gt;http://www.myLocalPortalURL.com/&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # TO DO-&amp;gt;: Upload Map Package to Local Portal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SignOutFromPortal_server()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to change my portal URL programmatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 15:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-python-to-sign-in-to-arcgis-online-and-a-local/m-p/654373#M50946</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2014-10-02T15:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use Python To Sign in to ArcGIS Online and a Local Portal</title>
      <link>https://community.esri.com/t5/python-questions/use-python-to-sign-in-to-arcgis-online-and-a-local/m-p/654374#M50947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not really answer your question.&amp;nbsp; But as a workaround, can you just set up another username bound to the alternate URL?&amp;nbsp; The docs do seem to say that the third parameter is completely ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 12:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-python-to-sign-in-to-arcgis-online-and-a-local/m-p/654374#M50947</guid>
      <dc:creator>ElleryChan</dc:creator>
      <dc:date>2014-10-03T12:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use Python To Sign in to ArcGIS Online and a Local Portal</title>
      <link>https://community.esri.com/t5/python-questions/use-python-to-sign-in-to-arcgis-online-and-a-local/m-p/654375#M50948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion Ellery, but unfortunately no matter what I do the function always seems to call the connected portal defined in ArcGIS Administrator (as seen in Fiddler).&amp;nbsp; I think I will be exploring the REST API or ArcObjects to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 12:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-python-to-sign-in-to-arcgis-online-and-a-local/m-p/654375#M50948</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2014-10-06T12:51:16Z</dc:date>
    </item>
  </channel>
</rss>

