Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.
Forum Discussion
Victor A.18
10 years agoNew member | Level 1
The Dropbox user ID of the authorized user returned by /oauth2/authorize is invalid
According to API documentation, the /oauth2/authorize request must redirect to redirect_uri and send uid of the authorized user as one of parameters.
I see uid parameter in redirect but the value of uid parameter is not a user-id of my user also it's not a member id. I don't know what it is at all. Actually it is shorter than regular user id.
How I can determinate which user has beed used to authorise the API access?
5 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Dropbox for Business API apps are linked to teams themselves (as opposed to Dropbox API apps, which are linked to individual users). This being the case, the uid returned by the authorization flow for Dropbox for Business apps is the ID of the team, not any particular user.
It's not currently possible to determine which admin for the team authorized the app, but I'll be sure to pass this along as a feature request.
- Victor A.1810 years agoNew member | Level 1
Thanks for your explanation, Gregory
Seems it's something like internal id of team because /team/get_info returns id like this dbtid: AAA-xxxxxxxxxxxxxxxx
- Greg-DB10 years ago
Dropbox Community Moderator
Yes, the integer version is a it's a different/older format for the team ID.
- Asala A.10 years agoNew member | Level 1
helps me to order information.
- 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,039 PostsLatest Activity: 12 hours 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!