--- title: "Email Server Integration: Google Suite Setup" slug: "email-server-integration-google-suite-setup" description: "Set up a Google Suite service account for 6sense integration, enabling Gmail, Calendar, and Admin SDK for seamless email and calendar syncing." tags: ["Integrations and APIs", "Google Workspace", "Service Account", "Domain Wide Delegation"] updated: 2025-07-10T18:34:58Z published: 2025-07-10T18:34:58Z canonical: "support.6sense.com/email-server-integration-google-suite-setup" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.6sense.com/llms.txt > Use this file to discover all available pages before exploring further. # Email Server Integration: Google Suite Setup **Prerequisites for Google Suite:** - Service account private account. - Admin user has directory access. ## Set-up an Email Service Account in Google Suite Reference: [Creating and enabling service accounts for instances | Compute Engine Documentation | Google Cloud](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances) 1. Create a project for 6sense integration: ![mceclip0.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414673662483-mceclip0.png)![mceclip1.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414681330963-mceclip1.png) 1. Go to the [Manage Resources](https://console.cloud.google.com/cloud-resource-manager) page in the Cloud Console. 2. Select **Organization** in the drop-down at the top of the page and select the organization or organization unit you want to create a project for. 3. Click **Create Project**. 4. In the New Project window, enter a project name (Example: 6sense Service Account) and select a billing account. 5. When you’re finished entering the project details, click **Create**. 2. Enable API for Gmail, Calendar, Admin SDK, and People: 1. Go to the [Google Cloud API Dashboard](https://console.cloud.google.com/apis/dashboard) page. Make sure the project (Example: release test) is selected in the drop-down at the top of the page. ![mceclip2.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414681399315-mceclip2.png)![mceclip3.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414673749779-mceclip3.png) 2. Click **Enable APIs and Services**. ![mceclip4.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414673763859-mceclip4.png) 3. Search for Gmail and click the Gmail API from the search results. ![mceclip5.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414673772179-mceclip5.png) 4. Click **Enable** to enable the Gmail API for this project. 5. Click the back arrow next to the API Library. 6. Search for Calendar and click Google Calendar API from the search results. ![mceclip7.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414673812371-mceclip7.png) 7. Click **Enable** to enable the Google Calendar API, Contact SDK API, and Admin SDK API for this project. 3. Create Service Account. 1. Go to the [Service Accounts](https://console.cloud.google.com/iam-admin/serviceaccounts) page, Make sure the project (Example: 6sense service Account) is selected in the drop-down at the top of the page. 2. Click **Create Service Account**. ![mceclip8.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414673845139-mceclip8.png) 3. Enter the details for the Service Account: - Service Account Name: Example: 6sense Service Account - Service Account Description: Example: Service account to sync emails and calendar with 6sense ![mceclip9.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414689556499-mceclip9.png) 4. For service account permissions select **Project > Viewer** and click **Continue**. ![mceclip10.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414673860755-mceclip10.png) 5. Generate a key for the service account and click **Create Key**. Select **JSON** for the key type and click **Create**. This will generate and download a key file. It will be needed later. Note the client ID of the service account it will be needed later ([Service Accounts](https://console.cloud.google.com/iam-admin/serviceaccounts)). ![mceclip11.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414681586963-mceclip11.png)![mceclip12.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414689623443-mceclip12.png) 6. Admin user will need to enable Domain-Wide Delegation: [Perform Google Workspace Domain-Wide Delegation of Authority | Directory API | Google Developers](https://developers.google.com/admin-sdk/directory/v1/guides/delegation) 7. Select **Security > Access and data control > API controls > Manage Domain Wide Delegation**. ![mceclip13.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414689644435-mceclip13.png)![mceclip14.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414681660819-mceclip14.png) 8. Click **Add new** to add API Scopes in OAuth Scopes. ![mceclip15.png](https://cdn.us.document360.io/0e2cd0a2-b3b3-495b-80df-96f8381febea/Images/Documentation/4414681664403-mceclip15.png) 9. Authorize the following: ```plaintext https://www.googleapis.com/auth/calendar.events.readonly, https://www.googleapis.com/auth/calendar.readonly, https://www.googleapis.com/auth/gmail.readonly, https://www.googleapis.com/auth/contacts.readonly, https://www.googleapis.com/auth/contacts.other.readonly, https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.group.member.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/calendar.settings.readonly, https://www.googleapis.com/auth/directory.readonly, https://www.googleapis.com/auth/profile.agerange.read, https://www.googleapis.com/auth/profile.emails.read, https://www.googleapis.com/auth/profile.language.read, https://www.googleapis.com/auth/user.addresses.read, https://www.googleapis.com/auth/user.birthday.read, https://www.googleapis.com/auth/user.emails.read, https://www.googleapis.com/auth/user.gender.read, https://www.googleapis.com/auth/user.organization.read, https://www.googleapis.com/auth/user.phonenumbers.read, https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile ``` 10. Add with service account email, admin user with directory access and JSON key file generated on 6sense ABM Email server integration configuration page. 11. To limit data access to a specific group or organization follow these steps: [Perform Google Workspace Domain-Wide Delegation of Authority | Directory API | Google Developers](https://developers.google.com/admin-sdk/directory/v1/guides/delegation#limit_service_account_impersonation_to_organizational_units_or_groups) Application Programming Interface; a set of rules that allows different software applications to communicate with each other. Account-Based Marketing, the former name of the 6sense Revenue Marketing product.