Google Service Account
Configure Google Service Account for Gmail API with domain-wide delegation
Domain-Wide Delegation Required
This configuration uses a Google Service Account with domain-wide delegation to access Gmail on behalf of users. Make sure you have set up OAuth scopes in your Google Workspace Admin Console.
Service Account Credentials
Upload your service account JSON file or paste the credentials manually
Required OAuth Scopes
Ensure these scopes are added in Google Workspace Admin Console
https://www.googleapis.com/auth/gmail.send
https://www.googleapis.com/auth/gmail.compose
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/adwords
Setup Instructions
1. Create Service Account:
Go to Google Cloud Console → IAM & Admin → Service Accounts → Create Service Account
2. Download JSON Key:
Click on the service account → Keys → Add Key → Create New Key → JSON
3. Enable Domain-Wide Delegation:
Service Account → Show Domain-Wide Delegation → Enable
4. Add OAuth Scopes:
Google Workspace Admin Console → Security → API Controls → Manage Domain Wide Delegation → Add the scopes listed above