Your workflow is unique 👨💻 - tell us how you use Dropbox 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).
4 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
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.310 years agoNew member | Level 1
I see. Thanks for quick response!
- vinodc9 years agoExplorer | Level 3
This would be a great feature to have. Otherwise, it's hard to know which user to impersonate by default.
- 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.
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.
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!