You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

vivek-qualys-ssc's avatar
vivek-qualys-ssc
Explorer | Level 4
4 years ago

List file members for files under Shared or Team folder

I want to list all shared files and their members in dropbox account and find below to do that.

1. List all namespaces with API "/2/team/namespaces/list"
2. Iterate namespaces and make API call "/2/files/list_folder" to list files and folders associiated to that namespace
3. Namespaces which are associated with user's homepsace we get team_member_id also in list namespace API, this team_member_id I am using while listing file members with API "/2/sharing/list_file_members" file member API doesn't support Dropbox-API-Select-Admin(Whole Team) header that means we will have to pass team_member_id of the user who has permission to access that file in order to list file members.
4. So for files which are under shared folder or team folder how do I list file members as I don't know team_member_id who has permission to call that API before hand?

Any ways to solve this use case?