Integration with Google Workspace
A user with administrator privileges for the Google Workspace domain is required to configure the integration, create a dedicated service account and obtain its authentication credentials. Once this is completed, each user must share their calendar with the configured service account.
Please note that the Google Workspace connector:
-
Only supports Free or Busy status for calendar events and can therefore only map presence to Busy.
-
Does not support Contact Search.
-
Does not support Virtual Meeting Room.
Configuring the Google Workspace Service Account
Below is a step-by-step guide to setting up the service account and the credentials required for the integration.
Log in with an administrator account
-
Log in to https://console.cloud.google.com using an account with Google Workspace administrator privileges for the domain you want to integrate.
Create a new project
-
Create a new project and give it a name, for example dstny-calendar-sync.
-
Select the newly created project.
Enable the Calendar API
-
Go to APIs & Services → Library.
-
Search for Google Calendar API.
-
Click Enable to activate the Calendar API.
Create a service account
-
Go to APIs & Services → Credentials.
-
Click Create Credentials and select Service account.
-
Enter a name (e.g. Dstny Calendar Sync 01) and an ID (e.g. dstny-calendar-sync-01).
-
Make a note of the service account's email address. This is the address users will share their calendars with.
-
Click Create and continue.
-
Search for the role Service Account Token Creator and assign it to the service account.
-
Click Done.
Important: Make sure to save the service account's email address, as users will need it when sharing their calendars.
Create a new client
-
Go to IAM & Admin → Service Accounts.
-
Click on the newly created service account.
-
Copy the Unique ID field.
-
Navigate to https://admin.google.com.
-
Go to Security → API controls.
-
Click Manage domain-wide delegation.
-
Click Add new.
-
Paste the Unique ID into the Client ID field.
-
Add the following OAuth scopes:
-
https://www.googleapis.com/auth/calendar.events.readonly -
https://www.googleapis.com/auth/calendar.readonly
-
-
Click Authorize.
Create an authentication file for the service account
-
Return to https://console.cloud.google.com.
-
Go to IAM & Admin → Service Accounts.
-
Click on the newly created service account.
-
Go to Keys.
-
Click Add key.
-
Select JSON.
-
Click Create.
-
The service account key file will be downloaded to your computer. Make sure to store it securely!
Once the key file has been downloaded, it can be uploaded to the Google Workspace Calendar Connector.
Please note that it may take a few hours before the service account credentials are fully activated in Google Workspace.
Share the user's calendar with the service account
The following procedure must be completed for every user who will use the integration.
Configure calendar sharing
-
The user must log in to Google Calendar: https://calendar.google.com/calendar/u/0/r.
-
Click the gear icon in the top navigation bar.
-
Select Settings.
-
Under Settings for my calendars, select the calendar you want to share (the primary calendar).
-
Go to Share with specific people or groups and select Add people or group.
-
Enter the service account's email address.
-
Select See only free/busy (hide details).
-
Click Send.
It may be possible for a domain administrator to automate this step. Contact your Google Workspace representative to check whether this can be enabled for your account.