<?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 Unable to protect credentials by storing them locally for a standalone ArcGIS Server in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810024#M2424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Unable to protect credentials by storing them locally for a standalone ArcGIS Server as per instructions at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Storing-your-credentials-locally" title="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Storing-your-credentials-locally" rel="nofollow noopener noreferrer" target="_blank"&gt;Working with different authentication schemes | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;"""
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;The following snippet to create a profile DOES NOT WORK FOR STANDALONE ARCGIS SERVER
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Storing-your-credentials-locally
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;"""
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;from &lt;/SPAN&gt;arcgis.gis &lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;GIS

server_gis = GIS(&lt;SPAN style="color: #aa4926;"&gt;url&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;"https://server.com:6443/arcgis"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;username&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'AGS_user'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                    &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;password&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'khjdfksjdfklj'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;profile&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'AGS_user'&lt;/SPAN&gt;)
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"profile defined for {}"&lt;/SPAN&gt;.format(server_gis))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there a way to create profiles for standalone ArcGIS Server authentication using ArcGIS API for Python? we are not using portal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:29:53 GMT</pubDate>
    <dc:creator>Subu_Swaminathan_GISP</dc:creator>
    <dc:date>2021-12-12T09:29:53Z</dc:date>
    <item>
      <title>Unable to protect credentials by storing them locally for a standalone ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810024#M2424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Unable to protect credentials by storing them locally for a standalone ArcGIS Server as per instructions at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Storing-your-credentials-locally" title="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Storing-your-credentials-locally" rel="nofollow noopener noreferrer" target="_blank"&gt;Working with different authentication schemes | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;"""
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;The following snippet to create a profile DOES NOT WORK FOR STANDALONE ARCGIS SERVER
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#Storing-your-credentials-locally
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;"""
&lt;/SPAN&gt;&lt;SPAN style="color: #629755; font-style: italic;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;from &lt;/SPAN&gt;arcgis.gis &lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;GIS

server_gis = GIS(&lt;SPAN style="color: #aa4926;"&gt;url&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;"https://server.com:6443/arcgis"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;username&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'AGS_user'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;                    &lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;password&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'khjdfksjdfklj'&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #aa4926;"&gt;profile&lt;/SPAN&gt;=&lt;SPAN style="color: #6a8759;"&gt;'AGS_user'&lt;/SPAN&gt;)
&lt;SPAN style="color: #8888c6;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;"profile defined for {}"&lt;/SPAN&gt;.format(server_gis))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there a way to create profiles for standalone ArcGIS Server authentication using ArcGIS API for Python? we are not using portal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810024#M2424</guid>
      <dc:creator>Subu_Swaminathan_GISP</dc:creator>
      <dc:date>2021-12-12T09:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to protect credentials by storing them locally for a standalone ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810025#M2425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="357757" data-username="sswamin6" href="https://community.esri.com/people/sswamin6" target="_blank"&gt;Subramanian Swaminathan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can&amp;nbsp;access &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;stand-alone&amp;nbsp;&lt;/SPAN&gt;ArcGIS Servers that&amp;nbsp;aren't part of a Portal using ArcGIS API for Python. But You cannot create profiles&amp;nbsp;for standalone ArcGIS Server as in the case of connecting to a GIS Instance such as ArcGIS Online/ArcGIS Enterprise.&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;IMG alt="Server" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/472552_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;documentation which you have mentioned in here is meant for&amp;nbsp;connecting to a GIS Instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to connect to a stand-alone ArcGIS Sever you can use the following snippet&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;from arcgis.gis.server import Server

test = Server(url="https://gis.mysite.com/arcgis/admin", GIS=None, username="xxxxx", password="yyyyyy", verify_cert=False)
‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Connecting to a stand-alone server and accessing the list of services" class="jive-emoji image-1 jive-image" height="300" src="https://community.esri.com/legacyfs/online/472516_Capture.PNG" width="837" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information you can refer to the documentation&amp;nbsp;&lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.server.html#server" rel="nofollow noopener noreferrer" target="_blank"&gt;arcgis.gis.server module&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810025#M2425</guid>
      <dc:creator>ImranKhan_P</dc:creator>
      <dc:date>2021-12-12T09:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to protect credentials by storing them locally for a standalone ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810026#M2426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/316979"&gt;Pattan Imran Khan&lt;/A&gt;‌ - Thanks for confirming that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would it take for ArcGIS API for Python team to bring this missing functionality for standalone ArcGIS Server administration? I am pretty sure there are a considerable number of esri users using standalone ArcGIS Server and would like to automate ArcGIS Server adminstration using this api and authenticate in a more secure process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810026#M2426</guid>
      <dc:creator>Subu_Swaminathan_GISP</dc:creator>
      <dc:date>2019-11-06T15:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to protect credentials by storing them locally for a standalone ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810027#M2427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;In the meantime, I Would recommend you use keyring, it is installed with the arcgis API so its readily available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The password is stored in Windows credentials manager and you will find them there besides the passwords from profiles.&lt;/P&gt;&lt;P&gt;There are two easy steps, store your password:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Create key" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/472743_createkey.PNG" /&gt;&lt;/P&gt;&lt;P&gt;And to use the password:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Use key" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/472744_useKey.PNG" /&gt;&lt;/P&gt;&lt;P&gt;I prefer to use the Group name to discern between environments like Test and Prod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 14:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-protect-credentials-by-storing-them/m-p/810027#M2427</guid>
      <dc:creator>HåkonDreyer</dc:creator>
      <dc:date>2019-11-07T14:31:47Z</dc:date>
    </item>
  </channel>
</rss>

