<?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 Team admin has no permission to delete_v2 files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Team-admin-has-no-permission-to-delete-v2-files/m-p/385849#M21449</link>
    <description>&lt;P&gt;For some reason, I am unable to find a way to delete files in a shared folder (team, business account). Sample request and response:&lt;/P&gt;
&lt;PRE&gt;curl -s -X POST https://api.dropboxapi.com/2/files/delete_v2 \
    --header 'Authorization: Bearer whatever' \
    --header 'Content-Type: application/json' \
    --header 'Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "123456789"}' \
    --data '{"path":"/whatever"}' \
    --header "Dropbox-API-Select-Admin: dbmid:whatever"
{
  "error_summary": "no_permission/",
  "error": {
    ".tag": "no_permission"
  }
}&lt;/PRE&gt;
&lt;P&gt;The credentials are valid for the app (generated in the app console), and the admin account is a team admin (got the dbmid from the team member list API endpoint).&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Dec 2019 15:01:57 GMT</pubDate>
    <dc:creator>_ic</dc:creator>
    <dc:date>2019-12-25T15:01:57Z</dc:date>
    <item>
      <title>Team admin has no permission to delete_v2 files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Team-admin-has-no-permission-to-delete-v2-files/m-p/385849#M21449</link>
      <description>&lt;P&gt;For some reason, I am unable to find a way to delete files in a shared folder (team, business account). Sample request and response:&lt;/P&gt;
&lt;PRE&gt;curl -s -X POST https://api.dropboxapi.com/2/files/delete_v2 \
    --header 'Authorization: Bearer whatever' \
    --header 'Content-Type: application/json' \
    --header 'Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "123456789"}' \
    --data '{"path":"/whatever"}' \
    --header "Dropbox-API-Select-Admin: dbmid:whatever"
{
  "error_summary": "no_permission/",
  "error": {
    ".tag": "no_permission"
  }
}&lt;/PRE&gt;
&lt;P&gt;The credentials are valid for the app (generated in the app console), and the admin account is a team admin (got the dbmid from the team member list API endpoint).&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 15:01:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Team-admin-has-no-permission-to-delete-v2-files/m-p/385849#M21449</guid>
      <dc:creator>_ic</dc:creator>
      <dc:date>2019-12-25T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Team admin has no permission to delete_v2 files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Team-admin-has-no-permission-to-delete-v2-files/m-p/386075#M21461</link>
      <description>&lt;P&gt;It looks like you may be attempting to use the "Dropbox-API-Select-Admin" header to delete something from a shared folder in a member's private folder.&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-delete" target="_self"&gt;The&amp;nbsp;/2/files/delete_v2 endpoint&lt;/A&gt; only supports &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access" target="_self"&gt;the "Team Admin" mode for&amp;nbsp;Dropbox-API-Select-Admin&lt;/A&gt; though, meaning it "can access content of team folders but not team member's private files.".&lt;/P&gt;
&lt;P&gt;Instead, you should use the "Dropbox-API-Select-User" header and supply the member ID of one of the members of the shared folder.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 17:53:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Team-admin-has-no-permission-to-delete-v2-files/m-p/386075#M21461</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-12-26T17:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Team admin has no permission to delete_v2 files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Team-admin-has-no-permission-to-delete-v2-files/m-p/386152#M21466</link>
      <description>&lt;P&gt;Thank you for the feedback.&lt;/P&gt;&lt;P&gt;Swtiching to the&amp;nbsp;&lt;SPAN&gt;Dropbox-API-Select-User&lt;/SPAN&gt; header does work.&lt;/P&gt;&lt;P&gt;For anyone confused, the problem may be in the documentation. At time of writing, the documentation states:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN&gt;In contrast, Dropbox-API-Select-Admin allows access to and operations on any team-owned content, including unmounted content. This includes any team member's private files and folders as well as contents of any shared folders owned by a member of the team and team folders.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This really sounds like Admins can do anything, pretty much the usual understanding. But they cannot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-delete" target="_self"&gt;delete_v2 endpoint documentation&lt;/A&gt; states only 2 authentication options, again at time of writing: &lt;A href="https://www.dropbox.com/developers/reference/auth-types#user" target="_blank" rel="noopener"&gt;User Authentication&lt;/A&gt;, &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access" target="_blank" rel="noopener"&gt;Dropbox-API-Select-Admin (Team Admin)&lt;/A&gt;, which excludes the accepted answer.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The solution is as detailed by Greg K., ignoring the documentation.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 06:45:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Team-admin-has-no-permission-to-delete-v2-files/m-p/386152#M21466</guid>
      <dc:creator>_ic</dc:creator>
      <dc:date>2019-12-27T06:45:02Z</dc:date>
    </item>
  </channel>
</rss>

