cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

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

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
Highlighted

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.

Highlighted

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

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

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?