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.