We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
mbanton
8 years agoNew member | Level 2
Automatically add users to folder
Hello, I just wondered if there is any way to automatically add an email address / user access to a share folder? When a user submits a request on my website I wanted to automatically grant ...
Greg-DB
Dropbox Community Moderator
8 years agoYes, you can invite members to shared folders programmatically using /2/sharing/add_folder_member:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-add_folder_member
Note that this does not automatically add the shared folder to their accounts though. They would need to accept the invitation first. Or, if you have them authorize your app to access their accounts as well, you can also automate that step using /2/sharing/mount_folder:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-mount_folder
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
https://www.dropbox.com/developers/documentation/http/documentation#sharing-add_folder_member
Note that this does not automatically add the shared folder to their accounts though. They would need to accept the invitation first. Or, if you have them authorize your app to access their accounts as well, you can also automate that step using /2/sharing/mount_folder:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-mount_folder
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
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!