Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.
Forum Discussion
Info V.1
10 years agoCollaborator | Level 8
Empty uid in second leg of oauth for "Team member file access" app
When a member authenticates for a business app of type "Team member file access", then in the second leg of oauth the uid is empty:
Example:
{
"access_token": "8H9QotNcSyAAAAAAAABUbI0E-amnsmasnjsd...",
"token_type": "bearer",
"team_id": "dbtid:AACyGZWrUW...yzXtNuwYtLsVjoE",
"uid": ""
}
Any idea why cant this be the uid of the user who authenticates?
Thanks,
Manish
- The Dropbox API now offers a way to determine which admin authorized a particular access token:
https://www.dropbox.com/developers/documentation/http/teams#team-token-get_authenticated_admin
If you're using an official SDK, there will also be corresponding method for this endpoint.
4 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Dropbox for Business API apps are linked to Dropbox for Business teams, and not individual users/admins on teams. This can only be done by an admin, but the API doesn't currently return information about which admin specifically authorized it. I'm sending this along as a feature request though.
- Info V.110 years agoCollaborator | Level 8
Thanks gregory.
Is there any other way to find out who authenticates?
- Greg-DB10 years ago
Dropbox Community Moderator
No, there's no workaround, beyond having the app ask the admin for their ID/email.
- Greg-DB8 years ago
Dropbox Community Moderator
The Dropbox API now offers a way to determine which admin authorized a particular access token:
https://www.dropbox.com/developers/documentation/http/teams#team-token-get_authenticated_admin
If you're using an official SDK, there will also be corresponding method for this endpoint.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 6 years ago
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 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!