<?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: Using Arcpy With Authenticated Server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562230#M73239</link>
    <description>&lt;P&gt;I would check to make sure the layer is correct.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;test = map.listLayers("FiberCable")[0]
print(f"Selected layer: {test.name}")  # Check the layer name
print(f"Data source: {test.dataSource}")  # Verify the data source path

arcpy.MakeFeatureLayer_management(test.dataSource, 'testinglayer')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 15:28:59 GMT</pubDate>
    <dc:creator>TonyAlmeida</dc:creator>
    <dc:date>2024-11-25T15:28:59Z</dc:date>
    <item>
      <title>Using Arcpy With Authenticated Server</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562174#M73238</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I assume this is a relatively simple question with a relatively simple answer. When opening this ArcPro project file, I am presented with a request to enter credentials:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1732541465038.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120349iA3F2A4765BF6DFDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1732541465038.png" alt="CodyPatterson_0-1732541465038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Even though I select Windows Credential Manager, it does not save, but that's fine for this purpose.&lt;/P&gt;&lt;P&gt;When accessing this through Arcpy or attempting to at least, I get this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_1-1732541562585.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120350i705FA4AA3B1B67DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_1-1732541562585.png" alt="CodyPatterson_1-1732541562585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I assume this is due to the authentication, we do not have access to the REST environment, so I cannot use the API for Python, so Arcpy must be employed.&lt;/P&gt;&lt;P&gt;How should I accomplish this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 13:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562174#M73238</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-11-25T13:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcpy With Authenticated Server</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562230#M73239</link>
      <description>&lt;P&gt;I would check to make sure the layer is correct.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;test = map.listLayers("FiberCable")[0]
print(f"Selected layer: {test.name}")  # Check the layer name
print(f"Data source: {test.dataSource}")  # Verify the data source path

arcpy.MakeFeatureLayer_management(test.dataSource, 'testinglayer')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 15:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562230#M73239</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2024-11-25T15:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcpy With Authenticated Server</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562342#M73241</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3265"&gt;@TonyAlmeida&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great suggestion! This actually showed me whether or not I was logged in on the layer, appears so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1732560490281.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120386iF8876E97129F3F46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1732560490281.png" alt="CodyPatterson_0-1732560490281.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The USER item is filled with the username, not sure if it actually is logged in, but it unfortunately did not work.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 18:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562342#M73241</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-11-25T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcpy With Authenticated Server</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562364#M73243</link>
      <description>&lt;P&gt;&amp;nbsp;Try using the layer object returned by the MakeFeatureLayer result, line 8.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;test = map.listLayers("FiberCable")[0]

# Verify the original layer details
print(f"Original layer: {test.name}")
print(f"Data source: {test.dataSource}")

# Returned layer object
result = arcpy.MakeFeatureLayer_management(test.dataSource, 'testinglayer')

# Get the layer object from the result
testing_layer = result.getOutput(0)

# Now work with `testing_layer`
print(f"Selected layer: {testing_layer.name}")  # Layer name
print(f"Data source: {testing_layer.dataSource}")  # Data source path&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 19:21:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562364#M73243</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2024-11-25T19:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcpy With Authenticated Server</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562392#M73245</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3265"&gt;@TonyAlmeida&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for another suggestion, unfortunately this didn't work either. This time it's related to a bug regarding the MakeFeatureLayer using the Feature Service link. I was told by ESRI support that this was too advanced of an issue to work through so it was marked as a Known Limit which means it will not be worked on.&lt;/P&gt;&lt;P&gt;This is the error I received:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CodyPatterson_0-1732565023300.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120404i5D5395B5124559A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CodyPatterson_0-1732565023300.png" alt="CodyPatterson_0-1732565023300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Bug link: &lt;A href="https://my.esri.com/#/support/bugs/bugs?bugNumber=BUG-0001440373" target="_blank"&gt;https://my.esri.com/#/support/bugs/bugs?bugNumber=BUG-000144037&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 20:04:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562392#M73245</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-11-25T20:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcpy With Authenticated Server</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562452#M73248</link>
      <description>&lt;P&gt;I didn't know that. Thanks for sharing!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 21:51:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-with-authenticated-server/m-p/1562452#M73248</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2024-11-25T21:51:22Z</dc:date>
    </item>
  </channel>
</rss>

