<?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: Issue unsharing a folder using API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-unsharing-a-folder-using-API/m-p/626027#M28945</link>
    <description>&lt;P data-unlink="true"&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt; Thanks for the detailed post! It looks like the issue is that the shared folder contains a nested shared folder, and so &lt;A href="https://help.dropbox.com/share/shared-folder-faq#unshare" target="_blank"&gt;cannot be unshared&lt;/A&gt;. You would need to move the nested shared folder out first before you can unshare the parent shared folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll ask the team to see if we can improve the error reporting in that case.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 19:40:05 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-09-29T19:40:05Z</dc:date>
    <item>
      <title>Issue unsharing a folder using API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-unsharing-a-folder-using-API/m-p/626017#M28943</link>
      <description>&lt;P&gt;I have a issue related to shared folder unsharing. I gonna post the requests and corresponding results.&lt;/P&gt;&lt;P&gt;Running &lt;A title="Return the list of all shared folders the current user can mount or unmount" href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_mountable_folders" target="_blank" rel="noopener"&gt;2/sharing/list_mountable_folders&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/sharing/list_mountable_folders \
  --header 'Authorization: Bearer sl.BQ...' \
  --header 'Content-Type: application/json' \
  --data '{}'&lt;/PRE&gt;&lt;P&gt;... does return:&lt;/P&gt;&lt;PRE&gt;{
  "entries": [
    {
      "access_type": {
        ".tag": "&lt;U&gt;&lt;STRONG&gt;owner&lt;/STRONG&gt;&lt;/U&gt;"
      },
      "is_inside_team_folder": false,
      "is_team_folder": false,
      "path_lower": "/music",
      "name": "Music",
      "policy": {
        "acl_update_policy": {
          ".tag": "editors"
        },
        "shared_link_policy": {
          ".tag": "anyone"
        },
        "viewer_info_policy": {
          ".tag": "enabled"
        }
      },
      "preview_url": "https://www.dropbox.com/scl/fo/5vl.../h?dl=0",
      "shared_folder_id": "&lt;U&gt;&lt;STRONG&gt;3104120081&lt;/STRONG&gt;&lt;/U&gt;",
      "time_invited": "2022-09-29T17:34:02Z",
      "access_inheritance": {
        ".tag": "inherit"
      }
    },
    ...
  ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;For readability, the important entry is listed only (some non important content is stripped, but id is the actual).&lt;/P&gt;&lt;P&gt;Next while I'm trying unshare the same folder using &lt;A title="Allows a shared folder owner to unshare the folder" href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-unshare_folder" target="_blank" rel="noopener"&gt;/2/sharing/unshare_folder&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/sharing/unshare_folder \
  --header 'Authorization: Bearer sl.BQ...' \
  --header 'Content-Type: application/json' \
  --data '{"shared_folder_id":"&lt;U&gt;&lt;STRONG&gt;3104120081&lt;/STRONG&gt;&lt;/U&gt;"}'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The result is an async id:&lt;/P&gt;&lt;PRE&gt;{
  ".tag": "async_job_id",
  "async_job_id": "dbjid:AABWMExqheAMvyb_UB-tiU5GcyV0Z1AWnBzBuV6EMZEHaFDv9QFv5ru1mpNqFYC1KizxEvJ3lweB4WwZQ1kcwlQI"
}&lt;/PRE&gt;&lt;P&gt;And at the end the result on checking job status using&amp;nbsp;&lt;A title="Returns the status of an asynchronous job" href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-check_job_status" target="_blank" rel="noopener"&gt;/2/sharing/check_job_status&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/sharing/check_job_status \
  --header 'Authorization: Bearer sl.BQ...' \
  --header 'Content-Type: application/json' \
  --data '{"async_job_id":"dbjid:AABWMExqheAMvyb_UB-tiU5GcyV0Z1AWnBzBuV6EMZEHaFDv9QFv5ru1mpNqFYC1KizxEvJ3lweB4WwZQ1kcwlQI"}'&lt;/PRE&gt;&lt;P&gt;...results in:&lt;/P&gt;&lt;PRE&gt;{
  ".tag": "failed",
  "failed": {
    ".tag": "unshare_folder_error",
    "unshare_folder_error": {
      ".tag": "no_permission"
    }
  }
}&lt;/PRE&gt;&lt;P&gt;In addition to 'no_permission':&lt;/P&gt;&lt;P&gt;x-dropbox-request-id: 2188ae550fd2438198dbe457909a661a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why this 'no_permission' gets up?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:58:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-unsharing-a-folder-using-API/m-p/626017#M28943</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-29T18:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue unsharing a folder using API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-unsharing-a-folder-using-API/m-p/626027#M28945</link>
      <description>&lt;P data-unlink="true"&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt; Thanks for the detailed post! It looks like the issue is that the shared folder contains a nested shared folder, and so &lt;A href="https://help.dropbox.com/share/shared-folder-faq#unshare" target="_blank"&gt;cannot be unshared&lt;/A&gt;. You would need to move the nested shared folder out first before you can unshare the parent shared folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll ask the team to see if we can improve the error reporting in that case.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 19:40:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-unsharing-a-folder-using-API/m-p/626027#M28945</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-09-29T19:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue unsharing a folder using API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-unsharing-a-folder-using-API/m-p/626048#M28949</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It's still strange - something that's not supposed to be possible (nesting shared folder) is essentially possible. In such a case should be possible undone it in the same (or similar, at least) reverse way, but there's not such way! Could be considered on system root level (not only API).&lt;/P&gt;&lt;P&gt;By the way using such moves your system can get tricked!!! Shared folder receiver can change access from "can view" only to "can edit" without any granting from folder owner. It's enough to be available at some point (not necessarily now - can be in the past) some folder with "can edit" permissions from the same owner. I don't know is this something intentional from Dropbox side, but can be considered as a security hole! I performed such a trick with owner verbal granting.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 21:17:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-unsharing-a-folder-using-API/m-p/626048#M28949</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-09-29T21:17:10Z</dc:date>
    </item>
  </channel>
</rss>

