Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I am trying to look up all members of a team using the business API, and then identify the user's root field and download all the files.
I've got each individual element working but I can't for the life of me figure out how to get the business and user api's working in tandem. Any advice or documentation on this?
To use both the individual user endpoints and the Business endpoints for a connected team, you should use a "Dropbox Business API" app with the "team member file access" permission. You can register one here if you haven't already. (Note that Dropbox Business API apps can only be connected to Business teams.)
With that kind of app, you can use the Business endpoints for a connected team, but also call the user endpoints for any particular member of a connected team via the "member file access" feature.
For example, you can use /2/team/members/list[/continue] to list all of the members of the connected team, and then call user endpoints like /2/users/get_current_account or /2/files/download for any particular member by specifying the member ID in the 'Dropbox-API-Select-User' header.
To use both the individual user endpoints and the Business endpoints for a connected team, you should use a "Dropbox Business API" app with the "team member file access" permission. You can register one here if you haven't already. (Note that Dropbox Business API apps can only be connected to Business teams.)
With that kind of app, you can use the Business endpoints for a connected team, but also call the user endpoints for any particular member of a connected team via the "member file access" feature.
For example, you can use /2/team/members/list[/continue] to list all of the members of the connected team, and then call user endpoints like /2/users/get_current_account or /2/files/download for any particular member by specifying the member ID in the 'Dropbox-API-Select-User' header.
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!