cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
From Dropbox Dash and Dropbox AI to seamless integrations with tools like Gmail, learn how Dropbox makes your day more efficient and easier, and how sci-fi is becoming reality here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Reply and help

List File Members Java SDK

List File Members Java SDK

vmora
New member | Level 2

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

1 Reply 1

Re: List File Members Java SDK

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".

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?
Need more support?