Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

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?