You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
VictorNemiro
6 years agoExplorer | Level 4
files/list_folder. Dropbox-API-Select-Admin. Invalid select user id format error.
I am trying to send the files/list_folder request with the 'Dropbox-API-Select-Admin = Whole Team' header. But i get a 400 response (Error in call to API function "files/list_folder": Invalid select user id format)
1. I registered Business Account.
2. Added the 'Team member file access' application.
3. Generated the token
What i do wrong?
My query:
- ЗдравкоLegendary | Level 20
Hi VictorNemiro,
On screenshot you posted above can't be seen "Dropbox-API-Select-User" header. Did you set there proper user Id?
Hope this gives right direction.
- Greg-DBDropbox Staff
VictorNemiro In your screenshot, I see you're setting the "Dropbox-API-Select-Admin" header value to "Whole Team", but you should actually be setting it to the relevant team member ID value.
"Whole Team" is one of the two modes supported by the Dropbox-API-Select-Admin header, but it isn't something you as the caller need to supply. The supported modes are defined by Dropbox and listed in the documentation for each endpoint, such as here for /2/files/list_folder. Support for a particular mode is determined by Dropbox when the endpoint is implemented and does not need to be specified by the caller.
Dropbox Business API apps are connected to the entire team, but they can operate on a specific member of a team, using the "member file access" feature. To do so, you can supply the the Dropbox-API-Select-Admin or Dropbox-API-Select-User header, to specify which member you want to operate on. You do so by sending the relevant team member ID as the header value. Team member IDs start with "dbmid:". You can get them from /2/team/members/get_info or /2/team/members/list[/continue], for instance.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf 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 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!