You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
isaachadaac
14 days agoNew member | Level 2
Sharing folders to users with viewer still permits downloads
I am working on an integration for our business that uses the API to shared a folder's content with an email attached to the order. Previously we used Google Drive to solve this but have experienced some issues and we would like to make Dropbox our new home. At the moment, I am granting the email addressed attached to the order viewer access like so:
const payload = {
members: [
{
access_level: "viewer",
member: {
".tag": "email",
email: "email@addr.ess"
}
},
],
quiet: true,
shared_folder_id: "<folder_id>"
};
Essentially it does grant the user viewer access however they still have the option to download the folders content. Is there a way that we can restrict this? Essentially we are trying to prevent file sharing of our businesses documents.
- Greg-DBDropbox Staff
Direct folder sharing, such as via /2/sharing/add_folder_member, doesn't support disabling downloads.
To disable downloads, you could use shared links instead, which is available via /2/sharing/create_shared_link_with_settings on the API (click on 'SharedLinkSettings' to expand the documentation to see the settings fields). However that doesn't handle distribution/access control to specific email addresses, so you'd need to handle that on your side if you use that instead.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 21 hours agoIf 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!