We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
mbanton
7 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 them permission to a Dropbox folder.
I dont really want to use a share link and password as they could easily give that to someone else. I would prefer access to be tied to their Dropbox account.
Many thanks,
Matt
1 Reply
- Greg-DB7 years ago
Dropbox Community Moderator
Yes, 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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 2 days ago
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 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!