What Sofie can use
Depending on permissions and user consent, Sofie may use Google Workspace to:- Search and read Gmail messages.
- Draft and send Gmail messages after review.
- Read Google Calendar events.
- Create calendar events after review.
- Search Google Drive files.
- Import useful Drive files into a Workspace.
Before you start
You need:- Access to the Google Cloud project used for Sofie OAuth.
- Permission to configure the OAuth consent screen.
- Permission to create OAuth client credentials.
- The Sofie domain users open in the browser.
- Access to Sofie Organization Settings > Integrations.
Redirect URI
Add this authorized redirect URI to the Google OAuth client:Configure the OAuth consent screen
Open OAuth consent
Go to APIs & Services and open the OAuth consent or branding area shown by your Google Cloud Console.
Choose user type
Choose the user type your organization requires. Internal apps are typically limited to your Google Workspace organization.
Add application details
Add the app name, support email, authorized domains, and contact information.
Add scopes
Add only the Gmail, Calendar, Drive, and profile scopes your organization wants Sofie to use.
Create the OAuth client
Add redirect URI
Add
https://<your-sofie-domain>/api/integrations/callback/google under authorized redirect URIs.Enable Google APIs
Enable the APIs that match the Sofie capabilities you want to support:- Gmail API.
- Google Calendar API.
- Google Drive API.
Configure scopes
Sofie may request scopes for the capabilities your organization enables.| Capability | Google scope examples |
|---|---|
| Gmail read and search | https://www.googleapis.com/auth/gmail.readonly |
| Gmail send | https://www.googleapis.com/auth/gmail.send |
| Calendar read | https://www.googleapis.com/auth/calendar.readonly |
| Calendar event write | https://www.googleapis.com/auth/calendar.events |
| Drive file read | https://www.googleapis.com/auth/drive.readonly |
| Drive metadata | https://www.googleapis.com/auth/drive.metadata.readonly |
| User profile | https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile |
Add values in Sofie
In Sofie, go to Organization Settings > Integrations and open Google. Enter:| Sofie field | Google value |
|---|---|
| Client ID | OAuth client ID. |
| Client Secret | OAuth client secret. |
Test the connection
User prompt examples
Troubleshooting
Users cannot connect Google
Users cannot connect Google
Confirm Google is enabled in Sofie, the OAuth client is a web application, the redirect URI matches exactly, and the user is allowed by the consent screen configuration.
The app says access is blocked
The app says access is blocked
Check the OAuth consent screen status, test user list, authorized domains, and whether Google requires verification for the requested scopes.
Drive files do not appear
Drive files do not appear
Confirm the user can access the file directly in Google Drive and that the integration includes Drive read or metadata scopes.
Gmail or Calendar actions are missing
Gmail or Calendar actions are missing
Confirm the matching Gmail or Calendar API is enabled and the requested scope is included in the OAuth app configuration.