One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
vmora
5 years agoNew member | Level 2
List File Members Java SDK
Hi All,
In a java application im string to extract all the ACL informaiton of each file on a bussiness account, im using an app registered by the Team Admin, with "Team Member File Access".
Is there a way of getting a file's members only using the Team Admin?
I tryed this way, but it fails with a namespace exception (the namespace used its a TEAM_MEMBER_FOLDER)
SharedFileMembers result_file = client.asAdmin(adminTeamMemberId).withPathRoot(PathRoot.namespaceId(namespace.getNamespaceId())).sharing().listFileMembersBuilder(((FileMetadata)metadata).getId()).withIncludeInherited(true).start();
Thanks for any help you could provide
- Greg-DB
Dropbox Staff
No, unfortunately, it's not possible to use the 'listFileMembers' functionality for all files from any/all members just using asAdmin for an admin. You'll need to use asMember for the relevant members(s).
The /2/sharing/list_file_members endpoints, which is what the 'listFileMembers' methods in the Java SDK use, only supports the "Team Admin" mode for "Dropbox-API-Select-Admin", meaning that it can "access content of team folders but not team member's private files".
About Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 3 days ago
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 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!