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

Forum Discussion

NitayBachrach's avatar
NitayBachrach
Explorer | Level 4
6 years ago

sharing/get_folder_metadata fails with "invalid shared folder ID"

Hi, so I tried getting the metadata of a member's shared folder (the one that I got from the members/get_info endpoint), and I got "invalid shared folder ID". 

I tired using both the user member id (with "Dropbox-API-Select-User") and the admin member id with "Dropbox-API-Select-Admin" (according to the documention its a whole team permission in this endpoind, and the documenation explictly says that whole team permission should be able to access those folders)

It's worth mentioning that I was able to get the metadata of the admin's private directory.

 

 

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

    Can you clarify which value from /2/team/members/get_info you're passing to /2/sharing/get_folder_metadata? The /2/team/members/get_info endpoint doesn't return shared folder information. It returns information about a particular team member.

    There isn't exactly something called "a member's shared folder".  Any particular member may own or be a member of any number of shared folders, but those aren't listed by /2/team/members/get_info

    What information are you looking for by attempting to do so?

    If you want to list the shared folders a member has access to, you should use the /2/sharing/list_folders[/continue] endpoints.

    • NitayBachrach's avatar
      NitayBachrach
      Explorer | Level 4

      Yes you're right . I mixed some things.

      The user has private folders that are shared with other people.

      I want to get the sharing info, and I have the shared folder id, but I metadata doesn't work...

      • NitayBachrach's avatar
        NitayBachrach
        Explorer | Level 4

        I'd add that that shared_folder_id is returned by the server as "parent_shared_folder_id" when I'm enumarating the files.

        I expect that that field is indeed a valid shared_folder_id.