cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know all about tools for creatives that work seamlessly with Dropbox, like Adobe? Well, check it out right here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

files/list_folder. Dropbox-API-Select-Admin. Invalid select user id format error.

files/list_folder. Dropbox-API-Select-Admin. Invalid select user id format error.

VictorNemiro
Explorer | Level 4

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:
Screenshot_1.jpg

2 Replies 2

Re: files/list_folder. Dropbox-API-Select-Admin. Invalid select user id format error.

Здравко
Super Collaborator | 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.

Re: files/list_folder. Dropbox-API-Select-Admin. Invalid select user id format error.

Greg-DB
Dropboxer

@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.

Poll
Do you work or study in the creative industry? If so, which area?
If you use Adobe, don't forget to check out our latest integrations update here.
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Здравко Super Collaborator | Level 20
What do Dropbox user levels mean?
Need more support?