Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I have shared some files in Dropbox Business.
I am using Dropbox Java SDK to get shared link information using SharedLinkMetadata -> LinkPermissions .
I want to get the LinkAudience of a shared file link (public, team, password_protected, invited etc) AND its AccessLevel (viewer or editor) which are present inside LinkPermissions.
But Dropbox API is returning null values for those.
I am using dropbox-core-sdk v5.4.4. Also, have enabled all permissions in dropbox App settings as well.
Please help me.
Thanks a Lot !!
Those fields are optional, and are not returned for all cases, depending on the type of link, etc. For instance, in this case, the API returns 'resolvedVisibility' as "NO_ONE", indicating that the link itself only refers to the content, and does not grant any additional access to it.
These properties are based on the link, not the app's settings, so enabling scopes for the app won't affect this. Scopes only determine which API endpoints the app is allowed to use.
Yes those fields are optional and may not be returned for all cases.
But I still need to get those information - link audience and access level.
How do I get this information - with whom I have shared that file and what can they do with the link.
I am sure I have shared files in my dropbox.
There isn't a way to force the API to fill in those fields. They will only be filled in based on the link. For instance, in the example you posted, you should rely on the 'resolvedVisibility' field, where the 'NO_ONE' indicates that there is no actual access granted by the link itself. You can find more information on these fields in the documentation, such as for the /2/sharing/list_shared_links endpoint (click through SharedLinkMetadata, FileLinkMetadata or FolderLinkMetadata, and LinkPermissions). The same is available in the Java SDK documentation, e.g., for ListSharedLinksResult.
Hi there!
If you need more help you can view your support options (expected response time for a 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!