Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
jm-za
6 months agoExplorer | Level 3
BadInputError when using OAuth token with "Dropbox-API-Select-Admin" header
We are developing a Django application and are running into a specific API error when trying to act on behalf of a team admin after a successful OAuth2 flow. We would be very grateful for any guidanc...
Greg-DB
Dropbox Community Moderator
6 months agoI see you're getting an "Invalid select user id format" error, which indicates that the value you're sending in the "Dropbox-API-Select-Admin" header is not of the expected format. That seems to be coming from your credential.team_member_id variable.
Note that "Dropbox-API-Select-Admin" (and "Dropbox-API-Select-User") expect a "team member ID", not an "account ID". You can find more information on this feature in the documentation here under "Member file access".
It sounds like you're passing in an account_id instead of a team_member_id. You can instead get the team_member_id from a number of endpoints on the API, such as /2/team/members/get_info_v2, which is team_members_get_info_v2 in the Python SDK.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!