This section walks through setting up the Gmail connector using a Service Account. More info on Service Accounts can be found here. A Google Workspace is required.
If you’d rather use an individuals account + OAuth to access Gmail, checkout the section here.
Create a Google Cloud Project
Enable the Gmail API
Enable the Admin SDK API
Create a Service Account
Create Service Account
button and fill out the fields in step 1. You can ignore steps 2 and 3.Keys
section, and click Add Key
. Download this key, you will need to upload to to Onyx
later.Note for Google Organizations created after April 2024:
Manage
, select Override parent's policy
and then select Not enforced
under Rules
.SET POLICY
Unique ID
of the Service AccountAdd new
, fill in the client ID with the Unique ID
of the Service accountOAuth scopes
:
https://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.user.readonly
This section walks through setting up the Gmail connector using a Service Account. More info on Service Accounts can be found here. A Google Workspace is required.
If you’d rather use an individuals account + OAuth to access Gmail, checkout the section here.
Create a Google Cloud Project
Enable the Gmail API
Enable the Admin SDK API
Create a Service Account
Create Service Account
button and fill out the fields in step 1. You can ignore steps 2 and 3.Keys
section, and click Add Key
. Download this key, you will need to upload to to Onyx
later.Note for Google Organizations created after April 2024:
Manage
, select Override parent's policy
and then select Not enforced
under Rules
.SET POLICY
Unique ID
of the Service AccountAdd new
, fill in the client ID with the Unique ID
of the Service accountOAuth scopes
:
https://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.user.readonly