You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Victor A.18's avatar
Victor A.18
New member | Level 1
10 years ago

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?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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.18's avatar
    Victor A.18
    New 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-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Yes, the integer version is a it's a different/older format for the team ID.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,889 PostsLatest Activity: 2 minutes ago
327 Following

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!