We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Info V.1's avatar
Info V.1
Collaborator | Level 8
9 years ago

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

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

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

    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's avatar
    Info V.1
    Collaborator | Level 8

    Thanks gregory.

    Is there any other way to find out who authenticates?

     

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

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