<?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: arcpy access to secure feature services in notebook webtool fails in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-access-to-secure-feature-services-in/m-p/1561923#M863</link>
    <description>&lt;P&gt;Thanks Nick. I did a quick test and it didn't seem to work as I expected. It's going to take me a week or so to get back and dig in deeper. I'll let you know what I find out&lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2024 00:09:11 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2024-11-23T00:09:11Z</dc:date>
    <item>
      <title>arcpy access to secure feature services in notebook webtool fails</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-access-to-secure-feature-services-in/m-p/1539625#M836</link>
      <description>&lt;P&gt;I trying to develop a web tool from a notebook in ArcGIS Onine.&amp;nbsp; I can access public features services OK but not secured services.&amp;nbsp; &amp;nbsp;Is there any way to make this work - including after I publish it as a web tool?&amp;nbsp; I'll need it to run under authority of the user running the web tool, so I can't use a known username and password to log in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import arcpy
gis = GIS("home")
public_url = 'https://utility.arcgis.com/usrsvcs/servers/8bf6c4b09a3b4b2a8abadd08ac23e42b/rest/services/ROW/PublicData/FeatureServer/0'
private_url = 'https://utility.arcgis.com/usrsvcs/servers/de103079a25a422c9a92e26f35f4cf2d/rest/services/ROW/DEMO/FeatureServer/2'

arcpy.Describe(public_url) # Works
arcpy.Describe(private_url) #Fails "does not exist"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 00:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-access-to-secure-feature-services-in/m-p/1539625#M836</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2024-09-18T00:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy access to secure feature services in notebook webtool fails</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-access-to-secure-feature-services-in/m-p/1560947#M860</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/192850"&gt;@DonMorrison1&lt;/a&gt;&amp;nbsp;- thanks for the question.&amp;nbsp; From you script, it looks like you are using the ArcGIS API for Python to authenticate:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;gis = GIS("home")&lt;/LI-CODE&gt;
&lt;P&gt;However, we recommend that you try to &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/signintoportal.htm" target="_self"&gt;sign into the portal through ArcPy&lt;/A&gt;.&amp;nbsp; Please try adding the line:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;arcpy.SignInToPortal("notebook")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;which is analogous to&amp;nbsp;GIS("home") for ArcGIS API for Python.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if you have additional questions.&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;Nick Giner (&lt;A href="mailto:nginer@esri.com" target="_blank"&gt;nginer@esri.com&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 19:44:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-access-to-secure-feature-services-in/m-p/1560947#M860</guid>
      <dc:creator>NicholasGiner1</dc:creator>
      <dc:date>2024-11-20T19:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy access to secure feature services in notebook webtool fails</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-access-to-secure-feature-services-in/m-p/1561923#M863</link>
      <description>&lt;P&gt;Thanks Nick. I did a quick test and it didn't seem to work as I expected. It's going to take me a week or so to get back and dig in deeper. I'll let you know what I find out&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 00:09:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/arcpy-access-to-secure-feature-services-in/m-p/1561923#M863</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2024-11-23T00:09:11Z</dc:date>
    </item>
  </channel>
</rss>

