Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
FinervaStu
4 years agoHelpful | Level 5
Nested sharing of team folders
I have a requirement where I created nested team folders and control the permissions for each of them through the DB API.
Through the UI, I can easily create a folder hierarchy /AAA/BBB/CCC/DDD and...
- 4 years ago
In that case, at that point in time, the "BBB" folder is no longer mounted anywhere in the user's account, though they still have permission to access it. If an app is connected to the account via the API, it can remount the folder using /2/sharing/mount_folder. Alternatively, the user can do so manually via https://www.dropbox.com/share/folders .
FinervaStu
4 years agoHelpful | Level 5
Thanks Greg, that's clearer now - think I was getting mixed up between the /team/team_folder/create and /files/create_folder_v2 endpoints.
I have encountered another behaviour that I think *maybe* a bug somewhere...
I have the folder hierarchy:
/TeamFolder/AAA/BBB
I add a user as an Editor to folder BBB - this then appears in their Dropbox.
I then add the same user as a Viewer to AAA - this then appears in their Dropbox, and BBB disappears as it's now inside AAA.
So far so good, and exactly what I was expecting
I then remove the user from AAA.
AAA then is removed from their Dropbox as expected.
The Editor permission remains on the BBB folder (visible in the Admin console and via API call to /sharing/list_folder_members) but BBB never re-appears in their Dropbox - not in the Mac/iPhone clients or through the web client.
I then have to either remove & add the user to BBB in the admin console, or call /sharing/add_folder_member again - even though the permission is still on the BBB folder.
I've tried the above sequence through the admin console AND via the API, but the result is the same.
Any ideas?
Cheers,
Stu.
Greg-DB
Dropbox Community Moderator
4 years agoIn that case, at that point in time, the "BBB" folder is no longer mounted anywhere in the user's account, though they still have permission to access it. If an app is connected to the account via the API, it can remount the folder using /2/sharing/mount_folder. Alternatively, the user can do so manually via https://www.dropbox.com/share/folders .
- FinervaStu4 years agoHelpful | Level 5
Thanks for the clarification Greg.
Inside my "revoke folder access" routine I'm now scanning sub-folders and for any shared folders. For any I find, I'm re-adding the members that are already there (from /sharing/list_folder_members) which causes the folders get re-mounted as I was expecting. This seems to work well (once I wait for async jobs to complete) and the various DB clients show exactly what I am expecting.
Thanks again for your help.
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!