Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Kevin B.36's avatar
Kevin B.36
Collaborator | Level 9
10 years ago

Shared Folder Metadata

The help on this topic is:

  • shared_folder_id optional The ID of a specific shared folder.
  • include_membership Required if shared_folder_id is specified. If true, include a list of members and a list of groups for the shared folder.
  • show_unmounted optional This value, either true or false(default), determines whether the returned list of shared folders will include shared folders that the user has left (but may still rejoin).

My interpretation is that include_membership=True MUST have a shared folder ID.  Ideally I'd like to have include_membership WITHOUT a shared folder ID and get a JSON return with all the shared folders and all of the members of the share (basically in one REST request).

The other option, which I'm doing now, is to get the shared folder metadata and for every folder call shared folder metadata again supplying a shared folder id (retrieved from the original get shared folder metadata request) with include_membership =True.

Thanks,

kevin

2 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    It looks like you're referring to the Core API /shared_folders endpoint. The documentation means that if shared_folder_id is specified, you must also specify include_membership. However, that doesn't mean you can't use include_membership without a shared_folder_id. That means you can call /shared_folders and set include_membership=true without specifying a shared_folder_id, and it will return all of the shared folders along with the membership.

    I just tried that and it worked for me. Give that a try and let me know if you run in to any trouble.

  • Kevin B.36's avatar
    Kevin B.36
    Collaborator | Level 9
    10 years ago

    Gregory,

    Brilliant, works perfectly. Cuts my processing time down (for say user with 20 shared folders) by an order of magnitude, it's that significant.

    Cheers,

    Kevin

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!