<?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 Sharing item not working and no error message in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sharing-item-not-working-and-no-error-message/m-p/384918#M1857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to share a map into a group. I use a post call&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;&lt;A href="https://&amp;lt;portal_url&amp;gt;/sharing/rest/content/users/&amp;lt;user_owner&amp;gt;/shareItems/?f=json"&gt;https://&amp;lt;portal_url&amp;gt;/sharing/rest/content/users/&amp;lt;user_owner&amp;gt;/shareItems/?f=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;body:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;items=35767ae53e0f497e9e5789ca90ad6f77&lt;BR /&gt;groups=d67c7123e9454d678de355cbdb57e6be&lt;BR /&gt;confirmItemControl=true&lt;BR /&gt;everyone=false&lt;BR /&gt;org=false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;and I get this has result:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #fffffe; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"results"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;: []&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;I should receive something like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #eeeeee; border: 1px dashed #c2c4ba; font-size: 11.44px; margin-left: 15px; padding: 10px 10px 25px;"&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;  &lt;SPAN class="" style="color: #a31515;"&gt;"results"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt;    &lt;SPAN class=""&gt;{&lt;/SPAN&gt;      &lt;SPAN class="" style="color: #a31515;"&gt;"itemId"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a31515;"&gt;"&lt;SPAN style="color: #505050; background-color: #ffffff;"&gt;35767ae53e0f497e9e5789ca90ad6f77&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;      &lt;SPAN class="" style="color: #a31515;"&gt;"success"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0000ff;"&gt;true&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;      &lt;SPAN class="" style="color: #a31515;"&gt;"notSharedWith"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt;               &lt;SPAN class=""&gt;]&lt;/SPAN&gt;    &lt;SPAN class=""&gt;}&lt;/SPAN&gt;  &lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do I get this empty result? Evidently the sharing is not working but I do not even receive a success : false result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I login into the portal UI and I can share the map easily to the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2019 16:57:20 GMT</pubDate>
    <dc:creator>PierreMasson</dc:creator>
    <dc:date>2019-09-26T16:57:20Z</dc:date>
    <item>
      <title>Sharing item not working and no error message</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sharing-item-not-working-and-no-error-message/m-p/384918#M1857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to share a map into a group. I use a post call&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;&lt;A href="https://&amp;lt;portal_url&amp;gt;/sharing/rest/content/users/&amp;lt;user_owner&amp;gt;/shareItems/?f=json"&gt;https://&amp;lt;portal_url&amp;gt;/sharing/rest/content/users/&amp;lt;user_owner&amp;gt;/shareItems/?f=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;body:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;items=35767ae53e0f497e9e5789ca90ad6f77&lt;BR /&gt;groups=d67c7123e9454d678de355cbdb57e6be&lt;BR /&gt;confirmItemControl=true&lt;BR /&gt;everyone=false&lt;BR /&gt;org=false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;and I get this has result:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #fffffe; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"results"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;: []&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #505050; background-color: #ffffff; font-size: 12px;"&gt;I should receive something like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #eeeeee; border: 1px dashed #c2c4ba; font-size: 11.44px; margin-left: 15px; padding: 10px 10px 25px;"&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;  &lt;SPAN class="" style="color: #a31515;"&gt;"results"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt;    &lt;SPAN class=""&gt;{&lt;/SPAN&gt;      &lt;SPAN class="" style="color: #a31515;"&gt;"itemId"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a31515;"&gt;"&lt;SPAN style="color: #505050; background-color: #ffffff;"&gt;35767ae53e0f497e9e5789ca90ad6f77&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;      &lt;SPAN class="" style="color: #a31515;"&gt;"success"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0000ff;"&gt;true&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;      &lt;SPAN class="" style="color: #a31515;"&gt;"notSharedWith"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;[&lt;/SPAN&gt;               &lt;SPAN class=""&gt;]&lt;/SPAN&gt;    &lt;SPAN class=""&gt;}&lt;/SPAN&gt;  &lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do I get this empty result? Evidently the sharing is not working but I do not even receive a success : false result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I login into the portal UI and I can share the map easily to the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 16:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sharing-item-not-working-and-no-error-message/m-p/384918#M1857</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2019-09-26T16:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing item not working and no error message</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sharing-item-not-working-and-no-error-message/m-p/384919#M1858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the soluition. The API reference is not clear on this. groups parameter must be pass has a querystring parameter, not in the body. In the reference exemple, there is no ? after /share...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff; font-size: 12.8px; margin-bottom: 0.3em;"&gt;&lt;P style="margin-left: 10px; margin-top: 0.5em; margin-bottom: 0.5em;"&gt;URL for Share Item&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff; font-size: 12.8px; margin-bottom: 0.3em;"&gt;&lt;PRE style="background-color: #eeeeee; border: 1px dashed #c2c4ba; font-size: 11.44px; margin-left: 15px; padding: 10px 10px 25px;"&gt;&lt;CODE&gt;http://www.arcgis.com/sharing/rest/content/items/af01df44bf36437fa8daed01407138ab/share groups=bf51aa6e879e4676b683dcbefb0ab0a9,cc5f73ab367544d6b954d82cc9c6dab7&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Should have been (I would have save 3 hours):&lt;/P&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff; font-size: 12.8px; margin-bottom: 0.3em;"&gt;&lt;P style="margin-left: 10px; margin-top: 0.5em; margin-bottom: 0.5em;"&gt;URL for Share Item&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background-color: #ffffff; font-size: 12.8px; margin-bottom: 0.3em;"&gt;&lt;PRE style="background-color: #eeeeee; border: 1px dashed #c2c4ba; font-size: 11.44px; margin-left: 15px; padding: 10px 10px 25px;"&gt;&lt;CODE&gt;http://www.arcgis.com/sharing/rest/content/items/af01df44bf36437fa8daed01407138ab/share&lt;EM&gt;&lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/EM&gt;groups=bf51aa6e879e4676b683dcbefb0ab0a9,cc5f73ab367544d6b954d82cc9c6dab7&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sharing-item-not-working-and-no-error-message/m-p/384919#M1858</guid>
      <dc:creator>PierreMasson</dc:creator>
      <dc:date>2019-09-26T19:24:30Z</dc:date>
    </item>
  </channel>
</rss>

