Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

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?

5 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    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
    10 years ago

    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 Community Moderator rankDropbox Community Moderator
    10 years ago

    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.6,039 PostsLatest Activity: 12 hours ago
415 Following

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!