We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

rbchapman's avatar
rbchapman
Explorer | Level 3
2 years ago

Listing shared files

I'm looking for a way to list individual files that a user is sharing with specific users (not shared links). I can list shared folders with the /sharing/list_folders route, but there doesn't seem to be a corresponding /sharing/list_files route.

 

Ultimately, I'd like to be able to get the shared files for a particular user and feed them into the /sharing/list_file_members route to determine who the files are shared with. 

  • Greg-DB's avatar
    Greg-DB
    2 years ago

    rbchapman Thanks for following up. It sounds like what you want is to set 'include_has_explicit_shared_members: true' when calling /2/files/list_folder, so you can get 'has_explicit_shared_members' for the files in the results (and then call /2/sharing/list_file_members as needed).

    • rbchapman's avatar
      rbchapman
      Explorer | Level 3

      Thanks, Scott. According to the docs, that route returns "a list of all files shared with current user." I'm looking for the list of files the user owns and has shared with specific individuals. 

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        rbchapman Thanks for following up. It sounds like what you want is to set 'include_has_explicit_shared_members: true' when calling /2/files/list_folder, so you can get 'has_explicit_shared_members' for the files in the results (and then call /2/sharing/list_file_members as needed).