We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Cato2021
4 years agoExplorer | Level 4
sharing_get_file_metadata access error
Hello, I want to get the file sharing information (such as how is it shared, if by link or who can view the file etc.) so I'm using sharing_get_file_metadata with the admin team member id and the f...
Cato2021
4 years agoExplorer | Level 4
Thank you! You are right, using as_user() method solved it.
But with sharing_get_file_metadata api I'm getting the file's policy that could be set and not the current status.
For example, I get SharedLinkPolicy('anyone', None) even though the file isn't shared with anyone.
Is there a way\api that gives the current status on a file:
e.g. is the file shared internally (within the team) or externally
by link or by invitation.
is it protected with a password
Thank you in advance.
or not shared at all.
Cato2021
4 years agoExplorer | Level 4
BTW the sharing settings are off as shown in the picture, then why the policy is still:
AclUpdatePolicy('editors', None)
MemberPolicy('anyone', None)
resolvedMemberPolicy('team', None)
SharedLinkPolicy('anyone', None)
ViewerInfoPolicy('enabled', None)
- Greg-DB4 years ago
Dropbox Community Moderator
Yes, that would just show the shared link policy for that folder; the effective policy for any particular sharing/link for content on a team would take into account all of the relevant policies (e.g., for the specific folder as well as the team itself).
To check for existing shared links for any specific file or folder, you would use sharing_list_shared_links. To see which accounts, if any, a file is specifically shared with, you would use sharing_list_file_members/sharing_list_file_members_continue/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!