<?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 Getting content of Team's root folder, can't find good documentation of Dropbox-API-Select-Admin in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-content-of-Team-s-root-folder-can-t-find-good/m-p/393637#M21693</link>
    <description>&lt;P&gt;Hi Dropbox Team.&lt;/P&gt;
&lt;P&gt;I try to get the content of my Team's root folder.&lt;/P&gt;
&lt;P&gt;Here is my call:&lt;/P&gt;
&lt;PRE&gt;curl --location --request POST 'https://api.dropboxapi.com/2/files/list_folder' \
--header 'Dropbox-API-Path-Root: {".tag": "home"}' \
--header 'Dropbox-API-Select-Admin: {"member_id": "dbmidXXXXX"}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sl.XXXXXXXXXXX' \
--data-raw '{
    "path": ""
}'&lt;/PRE&gt;
&lt;P&gt;And here is the answer:&lt;/P&gt;
&lt;PRE&gt;Error in call to API function "files/list_folder": Unexpected select user header. Your app does not have permission to use this feature&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;What am i doing wrong ?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to follow many other questions about it, but didn't found a great documentation to set&amp;nbsp;&lt;STRONG&gt;Header&amp;nbsp;Dropbox-API-Path-Root&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&amp;nbsp;&lt;STRONG&gt;Dropbox-API-Select-Admin,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;like this link:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#access-types" target="_blank" rel="noopener noopener noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/teams#access-types&lt;/A&gt;&amp;nbsp;and this post&amp;nbsp;&lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-list-the-contents-of-a-team-folder/td-p/258310" target="_blank" rel="noopener"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-list-the-contents-of-a-team-folder/td-p/...&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Could you put more examples in your documentation of the content expected in these headers ?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Dropbox-API-Select-User&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Dropbox-API-Select-Admin .&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Thanks a lot !&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 15:32:27 GMT</pubDate>
    <dc:creator>ClementFtNd</dc:creator>
    <dc:date>2020-01-30T15:32:27Z</dc:date>
    <item>
      <title>Getting content of Team's root folder, can't find good documentation of Dropbox-API-Select-Admin</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-content-of-Team-s-root-folder-can-t-find-good/m-p/393637#M21693</link>
      <description>&lt;P&gt;Hi Dropbox Team.&lt;/P&gt;
&lt;P&gt;I try to get the content of my Team's root folder.&lt;/P&gt;
&lt;P&gt;Here is my call:&lt;/P&gt;
&lt;PRE&gt;curl --location --request POST 'https://api.dropboxapi.com/2/files/list_folder' \
--header 'Dropbox-API-Path-Root: {".tag": "home"}' \
--header 'Dropbox-API-Select-Admin: {"member_id": "dbmidXXXXX"}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sl.XXXXXXXXXXX' \
--data-raw '{
    "path": ""
}'&lt;/PRE&gt;
&lt;P&gt;And here is the answer:&lt;/P&gt;
&lt;PRE&gt;Error in call to API function "files/list_folder": Unexpected select user header. Your app does not have permission to use this feature&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;What am i doing wrong ?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to follow many other questions about it, but didn't found a great documentation to set&amp;nbsp;&lt;STRONG&gt;Header&amp;nbsp;Dropbox-API-Path-Root&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&amp;nbsp;&lt;STRONG&gt;Dropbox-API-Select-Admin,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;like this link:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/teams#access-types" target="_blank" rel="noopener noopener noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/teams#access-types&lt;/A&gt;&amp;nbsp;and this post&amp;nbsp;&lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-list-the-contents-of-a-team-folder/td-p/258310" target="_blank" rel="noopener"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-list-the-contents-of-a-team-folder/td-p/...&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Could you put more examples in your documentation of the content expected in these headers ?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Dropbox-API-Select-User&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Dropbox-API-Select-Admin .&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:32:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-content-of-Team-s-root-folder-can-t-find-good/m-p/393637#M21693</guid>
      <dc:creator>ClementFtNd</dc:creator>
      <dc:date>2020-01-30T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting content of Team's root folder, can't find good documentation of Dropbox-API-Select-Admin</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-content-of-Team-s-root-folder-can-t-find-good/m-p/393667#M21696</link>
      <description>&lt;P&gt;That "Unexpected select user header" error indicates that you're using an access token for an app that is not allowed to use that feature. That feature is only meant for "&lt;A href="https://www.dropbox.com/developers/documentation/http/teams" target="_self"&gt;Dropbox Business API&lt;/A&gt;" apps registered for the "team member file access" permission.&lt;/P&gt;
&lt;P&gt;So, for instance, you might be using an access token for a "&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_self"&gt;Dropbox API&lt;/A&gt;" app, e.g., with the "full Dropbox" or "app folder" permission. In that case, you don't need to set a 'Dropbox-API-Select-Admin' or 'Dropbox-API-Select-User' header at all. The access token would only be for a single specific account anyway, so you don't need to additionally specify a particular&amp;nbsp;team member ID. (You can still use the "Dropbox-API-Path-Root" header in that case.)&lt;/P&gt;
&lt;P&gt;If you did intend to use the "&lt;A href="https://www.dropbox.com/developers/documentation/http/teams" target="_self"&gt;Dropbox Business API&lt;/A&gt;" to connect to entire&amp;nbsp;Dropbox Business team(s), in order to access any team member's files via the "member file access" feature, you can &lt;A href="https://www.dropbox.com/developers/apps/create" target="_self"&gt;register a "Dropbox Business API" app with the "team member file access" permission here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access" target="_self"&gt;the documentation for the "member file access" feature here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;And you can find &lt;A href="https://www.dropbox.com/developers/reference/namespace-guide" target="_self"&gt;the documentation for using the "Dropbox-API-Path-Root" header to access different parts of a&amp;nbsp;Dropbox account/team here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 17:00:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-content-of-Team-s-root-folder-can-t-find-good/m-p/393667#M21696</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-30T17:00:18Z</dc:date>
    </item>
  </channel>
</rss>

