cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automatically add users to folder

Automatically add users to folder

mbanton
New member | Level 2

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 1

Greg-DB
Dropbox Staff
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.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?