<?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: shared_with failed to get the sharing status in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/shared-with-failed-to-get-the-sharing-status/m-p/777599#M1048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/355523"&gt;Minbin Jiang&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can recommend changing the share status of the item manually and rerun the code to see if that gives the same result. The other thing you can do is check other Portal items.&lt;/P&gt;&lt;P&gt;I did a test on items in Portal and it's working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="156" src="https://community.esri.com/legacyfs/online/508938_pastedImage_2.png" width="574" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:14:53 GMT</pubDate>
    <dc:creator>MehdiPira1</dc:creator>
    <dc:date>2020-09-30T04:14:53Z</dc:date>
    <item>
      <title>shared_with failed to get the sharing status</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/shared-with-failed-to-get-the-sharing-status/m-p/777598#M1047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to get the sharing info for portal items with the ArcGIS API for python:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;webmap_search = gis.content.search("fdb487b5ee9c46fcac9b57883cce4b8a", item_type="Web Map")&lt;/P&gt;&lt;P&gt;webmap_search[0].shared_with&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Always getting result as:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;{'everyone': False, 'org': False, 'groups': []}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;however, this failed to reflect the real sharing status.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/shared-with-failed-to-get-the-sharing-status/m-p/777598#M1047</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-30T02:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: shared_with failed to get the sharing status</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/shared-with-failed-to-get-the-sharing-status/m-p/777599#M1048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/355523"&gt;Minbin Jiang&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can recommend changing the share status of the item manually and rerun the code to see if that gives the same result. The other thing you can do is check other Portal items.&lt;/P&gt;&lt;P&gt;I did a test on items in Portal and it's working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="156" src="https://community.esri.com/legacyfs/online/508938_pastedImage_2.png" width="574" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/shared-with-failed-to-get-the-sharing-status/m-p/777599#M1048</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2020-09-30T04:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: shared_with failed to get the sharing status</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/shared-with-failed-to-get-the-sharing-status/m-p/777600#M1049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mehdi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue seems from the account I was using.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using the super admin account of the portal - however, it can't retrieve the sharing groups. I have to switch to the content owner account.&amp;nbsp; I guess there should be somewhere setting to allow the portal admin to&amp;nbsp;do this otherwise doesn't make sense to me as I can't collect all the content own accounts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround I currently choose is to use the rest api rather than arcgis python API&amp;nbsp; which portal admin works to get this info.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2020 01:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/shared-with-failed-to-get-the-sharing-status/m-p/777600#M1049</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-10-02T01:31:05Z</dc:date>
    </item>
  </channel>
</rss>

