Skip to content

Issue Utilizing With a Delegated Gmail Account #528

@mcarroll918

Description

@mcarroll918

I'm building a script that accesses a delegated Gmail inbox to read emails and use Claude Code to generate responses based on historical sent message patterns. I have the Google MCP connected to Claude Code, but I'm hitting an issue: the Gmail API returns a 403 "Delegation denied for <requesting_user>" error when using OAuth2 (Desktop app) credentials to access a delegated inbox, even though delegation is properly configured in the web UI. It appears the API requires either domain-wide delegation or explicit client ID whitelisting by a Workspace admin, which isn't clearly documented. Can someone assist me with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions