We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
RobinHarveyIW
4 years agoExplorer | Level 4
Use business API to get membership for all namespaces
I want to export a list of namespaces, groups and namespace/folder membership using the business API. Namespace and groups are fairly easy, but I'm struggling to see how to get the listing of folder membership.
I can see that the the list_folder_members endpoint gives me the info I want, but the problem with this is that it's scoped to a particular user and I want to get all namespace membership for all namespaces, which means I have to have a "user account" which can access all folders. If a user doesn't have read access to the folder I'm querying (these are discovered using the business API and an admin app) then I'll get a "permission denied" error.
Am I missing something obvious here? Or do I just need to ensure that there's a suitable user account which can be used to access all folders?
1 Reply
- kylea4 years ago
Dropbox Staff
Setting the HTTP header Dropbox-API-Select-Admin to the member id of a team administrator will enable you to read this.
This article describes HTTP headers that can be added to to the user API to simplify acting on behalf of a user/admin or reading team-owned content.
About Discuss Dropbox Developer & API
Make connections with 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!