Join the Conversation: The Dash Community Is Now Open! ✨🎉
Forum Discussion
Michael K.133
10 years agoNew member | Level 1
Dropbox API: find the the members of single shared file
My question is in regard to Dropbox file sharing API.
Since June 2016 file can be shared with specific groups and users and external emails. Until now, specific sharing happened on the folder level.
Is there any way to retrieve the file shared members from the API? I cannot find this answer in the documentation.
Today, in my application, I am doing it for folders by callinghttps://api.dropboxapi.com/2/sharing/list_folder_members. From the response I extract the the groups and the shared members account ids. To get the information about the accounts (display name and email addresses) I am calling https://api.dropboxapi.com/2/users/get_account_batch with the ids.
2 Replies
Replies have been turned off for this discussion
- Alexandra F.110 years agoNew member | Level 1
It's currently not possible to get the members of a single shared file, but I'll be sure to pass this along as a feature request.
To your current solution: I don't think this will work. Single-shared-file members are not necessarily the same as shared folder members. You can call /list_folder (to get the contents of a folder) or /get_metadata and pass in include_has_explicity_shared_members=true, and any FileMetadata returned will tell you whether or not a file has explicit shared members in the has_explicit_shared_members field; however, it won't give you information about the actual users.
- Greg-DB10 years ago
Dropbox Community Moderator
This is now available via /list_file_members:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_file_members
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_file_members-continue
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_file_members-batch
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!