Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
robobooga
7 years agoExplorer | Level 4
Access team folders - Old Business Team Configuration
I understand that with the new team spaces and namespace configurations, that we would have to use 'Dropbox-API-Path-Root' header and I've managed to get it working by setting the namespace to the root and using 'Dropbox-API-Select-Admin' to view all folders.
What I'm having trouble with at the moment is that, when I use the same code to call the API and if the particular team is using the older team spaces config, I am only getting their personal folders when I call 'list_folder' and would like to know the proper way to resolve this.
Also, would developers be able to test on business accounts with the configurations toggle-able? I only have acces to the new business team spaces config and would like to test out the older one as well.
Thanks!
Yes, on the Dropbox Business API, you can use the /2/team/features/get_values endpoint to check the 'has_team_shared_dropbox' feature to see if the team uses the team space configuration.
Or, on the Dropbox API, you can call /2/users/get_current_account and check the returned RootInfo type to see if the user is a member of a team that uses the team space configuration. Specifically, the returned 'root_info' will be a 'UserRootInfo' (with '.tag' of 'user') if the team doesn't use the team space, or a 'TeamRootInfo' (with a '.tag' of 'team') if it does.
If you're using the "team member file access" feature, and want to operate on a particular user only, you should use the "Dropbox-API-Select-User" header. (The "Dropbox-API-Select-Admin" header is for access any team owned content in general.) And for listing any/all files in a user's account, you should use /2/files/list_folder[/continue]. (The /2/sharing/list_folders[/continue] endpoints, on the other hand, only list the shared folders in particular, and not their contents.)
11 Replies
- Greg-DB5 years ago
Dropbox Community Moderator
I can only help with questions about the Dropbox API itself. For help accessing other features or configuring your account(s) please reach out to support from the relevant account(s) here.
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!