Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
mrtn
10 months agoNew member | Level 1
Shared folder access with Token
Hi! I seem to have a simple access problem with my Token.
I am part of a team which has a shared folder which I am trying to access with the API, and while I have it working for files in my own directory:
"MY NAME/Folders/Files"
the Token doesn't seem to have access to the:
"DATA/Folders/Folders/etc"
where DATA is shared with me (both through team membership and explicitly)
Eventually I'm simply trying to do a recursive files_list_folders() to analyze the storage.
In the app console I have both "files.metadata.read" and "sharing.read" turned on, which should be the relevant permissions (and I did re-generate the Token after changing the permissions).
Is there something I am missing?
Thanks,
Martin
1 Reply
- iNeil10 months ago
Dropbox Community Moderator
Hi mrtn,
Please note that, by default, API calls to the Dropbox API operate in the 'member folder' of the connected account rather than the "team space" where the team folders are located.
If you need to access the team folder named "DATA", you need to configure your API calls to operate in the "team space" by setting the "Dropbox-API-Path-Root" header with your Dropbox API request. Below I have provided an example "Dropbox-API-Path-Root" header value to access the team space:
Dropbox-Api-Path-Root: {".tag": "root", "root": "YOUR_ROOT_NAMESPACE_ID"}You should be able to identify the root_namespace_id by executing the 2/users/get_current_account endpoint. You can also test the 2/users/get_current_account endpoint using our Dropbox API explorer. For further information, please review the following link:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!