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)
Unintended behavior
View staffing
Description
I've setup a service account and enabled domain-wide delegation with all scopes for the GMail API.
My service account json key includes the "subject" field using the email address from an admin account as its value.
When I'm trying to fetch the messages using the "user.messages" resource with the "list" method I get the messages back for this user.
If I try to fetch the messages for a different user I get the error below:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Delegation denied for admin@gmail.com"
}
],
"code": 403,
"message": "Delegation denied for admin@gmail.com"
}
}
This feels related to
Best Regards,
Tim