Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
Tags used for linking issues. [ID: 1172495]
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Description
We are building a mail client and wish to be able to access emails that the user has had delegated to them by another user. (not domain wide delegation).
The user has access to view/edit/delete emails via the gmail.com UI but when we try and access delegated emails authenticated as the user who has been delegated to using OAuth2 (login through our website) we receive a http 403 error with the message:
Delegation denied for user@example.com
.This is not related due to this issue: https://issuetracker.google.com/issues/290567932 as we are not using service accounts and domain wide delegation. We are acting as a logged in user's google account.
This feels like unexpected behaviour as the user does have access when acting as the UI, so a auth2client with the required scopes should also have access, to have parity with the gmail ui.
Code
Output