You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

ClementFtNd's avatar
ClementFtNd
New member | Level 2
5 years ago

Getting content of Team's root folder, can't find good documentation of Dropbox-API-Select-Admin

Hi Dropbox Team.

I try to get the content of my Team's root folder.

Here is my call:

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": ""
}'

And here is the answer:

Error in call to API function "files/list_folder": Unexpected select user header. Your app does not have permission to use this feature


What am i doing wrong ?

 

I tried to follow many other questions about it, but didn't found a great documentation to set Header Dropbox-API-Path-Root and Dropbox-API-Select-Admin, like this link: https://www.dropbox.com/developers/documentation/http/teams#access-types and this post https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-list-the-contents-of-a-team-folder/td-p/...

Could you put more examples in your documentation of the content expected in these headers ? Dropbox-API-Select-User and Dropbox-API-Select-Admin .


Thanks a lot !

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!