cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Empty uid in second leg of oauth for "Team member file access" app

Empty uid in second leg of oauth for "Team member file access" app

Info V.1
Collaborator | Level 8
Go to solution

When a member authenticates for a business app of type "Team member file access", then in the second leg of oauth the uid is empty:

Example:

{
"access_token": "8H9QotNcSyAAAAAAAABUbI0E-amnsmasnjsd...",
"token_type": "bearer",
"team_id": "dbtid:AACyGZWrUW...yzXtNuwYtLsVjoE",
"uid": ""
}

Any idea why cant this be the uid of the user who authenticates?

Thanks,

Manish

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
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.

View solution in original post

4 Replies 4

Greg-DB
Dropbox Staff
Go to solution

Dropbox for Business API apps are linked to Dropbox for Business teams, and not individual users/admins on teams. This can only be done by an admin, but the API doesn't currently return information about which admin specifically authorized it. I'm sending this along as a feature request though.

Info V.1
Collaborator | Level 8
Go to solution

Thanks gregory.

Is there any other way to find out who authenticates?

 

Greg-DB
Dropbox Staff
Go to solution

No, there's no workaround, beyond having the app ask the admin for their ID/email.

Greg-DB
Dropbox Staff
Go to solution
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.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Info V.1 Collaborator | Level 8
What do Dropbox user levels mean?