cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Need help to share file with specific people only

Explorer | Level 3

Hi Dropbox Team,

 

I am trying to achieve one functionality using dropbox APIs which will share a file with specific people only. Please refer below case for details.

  1.  I have uploaded files F1, F2, F3 in the same folder in Dropbox.
  2. I have 3 users U1, U2, U3 in the team.
  3. Now I want to share the file, F1 with U1 only, F2 with U2 only and F3 with U3 only.

Please suggest me API to achieve this.

Thanks in advance.

Pavan Deshmukh

 

4 Replies 4
Highlighted

Re: Need help to share file with specific people only

Super User II
Super User II
Do they need Edit access to the files? If so, you'll need to put each one in a separate folder and then share each folder with the intended user. You can't directly share a file with Edit access.
Highlighted

Re: Need help to share file with specific people only

Dropboxer
Dropboxer
That's correct, to share the files separately, with edit access, you'll need separate shared folders.

Using the API, you would specifically need to use /2/sharing/share_folder and /2/sharing/add_folder_member:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-share_folder
https://www.dropbox.com/developers/documentation/http/documentation#sharing-add_folder_member

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.
Highlighted

Re: Need help to share file with specific people only

Explorer | Level 3
Thanks Greg for the quick response.
What if I want to give view only access and not edit access? Still will need to make the separate folder?

Will SDK have support to use case that I mentioned in the first post?
Thanks in advance.
Highlighted

Re: Need help to share file with specific people only

Dropboxer
Dropboxer
For view-only access, you have more options, which don't require separate folders. You can use shared links:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_...

Or, you can invite members to view files directly:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-add_file_member

And yes, all of these functions are available in the official SDKs.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?