Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Cato2021
3 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...
Greg-DB
Dropbox Community Moderator
3 years agoThat endpoint only supports the "Team Admin" mode for "Dropbox-API-Select-Admin", meaning it "can access content of team folders and team spaces but not the team members' home namespaces". So, to be able to call that for files not in team folders/spaces, you'd need to use as_user with the relevant team member ID instead.
By the way, you can check the type of an object directly, e.g., to see if an entry is a FileMetadata, using instanceof like this.
Also, be sure to implement the pagination methods where applicable, to make sure you get all results, such as team_namespaces_list_continue and files_list_folder_continue.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!