One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Nadia K.3
10 years agoNew member | Level 1
Get account info using Dropbox for Business API access token
We are trying to get information about the user who has authorized Dropbox for Business through our application.
We can retrieve a list of users in a team and basic team info, but how to determine which user has performed the authorization?
We are using Python dropbox api v. 1.6 and DropboxOAuth2Flow.finish only returns the access_token (user_id and url_state are both empty or None).
- Greg-DB
Dropbox Staff
The API doesn't currently return information about which admin of a team performed a Dropbox for Business API app authorization, but I'll be sure to pass this along as a feature request.
- Nadia K.3New member | Level 1
I see. Thanks for quick response!
- vinodcExplorer | Level 3
This would be a great feature to have. Otherwise, it's hard to know which user to impersonate by default.
- Greg-DB
Dropbox Staff
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.
In the Python SDK, that's:
https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.DropboxTeam.team_token_get_authenticated_admin
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 7 hours ago
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!