Gmail Connector Setup
Provide necessary API permissions to index Gmail content.
The Google connector enables the indexing of:
Content and updates are streamed as changes are detected and processed in your Google Workspace.
Terraform will need a service account to make changes to your GCP project. We will grant it permissions which will essentially allow it to create, read, and delete all project resources. As such, you should keep the credentials for this account safe and not reuse them. The Terraform scripts create a much more restricted service account for normal operation.
Now the service account is created we can create API keys:
This will create another JSON file with the API key and related information. This file will be needed by your Deployment Engineer (in their deploy/terraform
directory).
In order for Terraform to programmatically make modifications, you need to manually enable the Google Cloud Resource Manager API.
The project will use additional APIs, but now that this API is available to Terraform, the Atolio deployment scripts will use Terraform to enable those APIs automatically.
The Google Workspace domain needs to grant permission to the integration’s default service account to perform operations. Unfortunately Terraform can’t automate this, so it has to be performed manually.
Your Deployment Engineer will need to make note of the unique ID for the default App Engine service account and the list of scopes. Be aware that this ID is of the default service account, typically named App Engine default service account
. It is not the Service Account you’ve previously created.
And the list of scopes are:
https://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/admin.directory.user.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/calendar.readonly,https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/admin.directory.domain.readonly,https://www.googleapis.com/auth/drive.activity.readonly
We now need to set up Domain-wide Delegation:
google_service_account_id
as obtained from your Deployment Engineer.Now Atolio is authorized to retrieve Google Workspace data.
Provide necessary API permissions to index Gmail content.
Provide necessary API permissions to index Google Drive contents.
Provide necessary API permissions to index Google Sites.