Forum Discussion

NitayBachrach's avatar
NitayBachrach
Explorer | Level 4
7 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.

 

 

4 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    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
    7 years ago

    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
    7 years ago

    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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    Thanks for following up. Yes, a value from the 'parent_shared_folder_id' field should be a valid shared folder ID.

    If that's not working, please share the code and output you're currently using so we can take a look. You can also share privately by opening an API ticket here if you'd prefer.

    It would also probably be helpful if you include the shared folder ID value itself, but please make sure to redact the access token. 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!