Discuss Dropbox Developer & API
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?
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.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!