How to prepare a Gmail Connection.

Article: 100073214
Last Published: 2025-04-18
Ratings: 0 0
Product(s): Veritas Alta SaaS Protection

Description

This article will walk through the process of configuring the Gmail pre-requisites in order to create the connector that will capture the data.  

A few notes to consider:

The process will require elevated access to the Google Workspace console.
The connector only supports capturing data of gmail accounts present in Google Workspace. 


Authentication and Authorization
A service account is required in order to access resources, including delegated access to users Gmail account


Step 1:  Create the Project

A project is a collection of settings, credentials, and metadata about the application or applications you're working on that make use of Google APIs and Google Cloud Platform resources.

1. Create a Project by logging into the console via the following URL: https://console.cloud.google.com/apis/credentials
2. Create a Credential of type service account.

https://veritastech.custhelp.com/euf/assets/images/100050288/0.png

Step 2: Enable the APIs

Click the Enable APIS AND SERVICES button.  From the list, enable the required APIs listed below:

Gmail
Service Directory API
Admin SDK API

https://veritastech.custhelp.com/euf/assets/images/100050288/1.png

Step 3: Create the service account, making it an owner of the project

https://veritastech.custhelp.com/euf/assets/images/100050288/2.png

https://veritastech.custhelp.com/euf/assets/images/100050288/3.png

Step 4:  Create the service account key and download the JSON 

This JSON file will be used when configuring the connector.  

https://veritastech.custhelp.com/euf/assets/images/100050288/4.jpg

Step 5: Enable domain-wide delegation for the service account


1. Browse to: https://admin.google.com/ac/owl/domainwidedelegation
2. Select Security, then API controls, then Domain-wide delegation
3. Click the Add new button
4. Enter the Client ID, which is the service account Unique ID
5. Enter the URL's below for the scopes:*

https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/admin.directory.group.member.readonly

6. Click the Authorise button

 

This completes the process.
 
Now it is time to create and configure the Connector that will capture this data

Was this content helpful?