<?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: Generating a list of all publicly shared feature services with the editing capabilities turned on in our Portal in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/generating-a-list-of-all-publicly-shared-feature/m-p/1102875#M6687</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/378855"&gt;@JennieCatalano1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The code sample here is a good guide for how to search for "FeatureService" from a Jupyter notebook:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/accessing-and-creating-content/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/accessing-and-creating-content/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, from the API for Python doco, adding here link to the "Item" class property "shared_with" which can indicate how the Feature Service item is shared: &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=item#arcgis.gis.Item.shared_with" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=item#arcgis.gis.Item.shared_with&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So, the typical workflow would be to query Portal content and get all feature services, then loop over the list and find which is shared publicly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 23:54:12 GMT</pubDate>
    <dc:creator>IhabHassan</dc:creator>
    <dc:date>2021-09-28T23:54:12Z</dc:date>
    <item>
      <title>Generating a list of all publicly shared feature services with the editing capabilities turned on in our Portal</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/generating-a-list-of-all-publicly-shared-feature/m-p/1102842#M6686</link>
      <description>&lt;P&gt;I'm looking for a way to find all the Feature Layers in our Portal that are shared publicly (with everyone) and have editing capabilities enabled.&amp;nbsp; I'm using Jupyter notebook and Portal 10.8.1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 22:35:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/generating-a-list-of-all-publicly-shared-feature/m-p/1102842#M6686</guid>
      <dc:creator>JennieCatalano1</dc:creator>
      <dc:date>2021-09-28T22:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a list of all publicly shared feature services with the editing capabilities turned on in our Portal</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/generating-a-list-of-all-publicly-shared-feature/m-p/1102875#M6687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/378855"&gt;@JennieCatalano1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The code sample here is a good guide for how to search for "FeatureService" from a Jupyter notebook:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/accessing-and-creating-content/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/accessing-and-creating-content/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, from the API for Python doco, adding here link to the "Item" class property "shared_with" which can indicate how the Feature Service item is shared: &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=item#arcgis.gis.Item.shared_with" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=item#arcgis.gis.Item.shared_with&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So, the typical workflow would be to query Portal content and get all feature services, then loop over the list and find which is shared publicly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 23:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/generating-a-list-of-all-publicly-shared-feature/m-p/1102875#M6687</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2021-09-28T23:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Generating a list of all publicly shared feature services with the editing capabilities turned on in our Portal</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/generating-a-list-of-all-publicly-shared-feature/m-p/1102962#M6688</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/378855"&gt;@JennieCatalano1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The following code snippet extracts a list of publicly shared items which are also editable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;items = gis.content.search("*", item_type='Feature Service', max_items=1000, outside_org=True,)
for item in items:
    try:
        layers = item.layers
        if 'Editing' in layers[0].properties.capabilities:
            print(f"Editable Layer: {item.title}, Capabilities: {layers[0].properties.capabilities}, Share Type: {item.shared_with}")
            continue
    except:
        pass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is set to 1000 items and you can also change it.&lt;/P&gt;&lt;P&gt;I hope that's helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 05:39:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/generating-a-list-of-all-publicly-shared-feature/m-p/1102962#M6688</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-09-29T05:39:13Z</dc:date>
    </item>
  </channel>
</rss>

