This guide is the first step of a larger process to enable auto remediations. After completing the steps on this page, you will be instructed to return to the Enable an Auto Remediation in Workbench guide to finish your setup.
This guide helps you set up your Google Workspace device so that you can enable the Remove Malicious Email auto remediation in Workbench. During the setup process, you will grant Expel all necessary permissions for the remediation to work.
How It Works
If our SOC identifies an email that must be removed, Workbench completes the action automatically unless it is specifically called out as a "Never remove" asset (the inboxes must first be added as context and then configured in Workbench; see Step 3). Quarantine inboxes are often called out as "Never remove" assets.
Quick Links
Setup includes the following steps (select any step for detailed instructions):
- Allow Appropriate Permissions
- Enable Google Workspace Logs in BigQuery
- Update Your Context
- Return to the Main Setup Guide
Step 1: Allow Appropriate Permissions
- Make sure you assign all API permissions in the Google Workspace (formerly G Suite) Setup for Workbench guide.
-
From the same project you created during onboarding for Google Workspace, search for Gmail API and select it.
- Enable the Gmail API permissions for the project by selecting Enable.
-
In the Google Workspace admin console, navigate to Domain-wide Delegation: https://admin.google.com/ac/owl/domainwidedelegation.
-
Locate the API Client created for the Service Account during onboarding, and then select Edit.
-
Add the following OAuth scope:
- https://www.googleapis.com/auth/gmail.modify
- https://www.googleapis.com/auth/gmail.modify
- Select AUTHORIZE.
Step 2: Enable Google Workspace Logs in BigQuery
- Confirm you are signed in to the Google Admin console with a super administrator account. You cannot complete these steps without super admin permissions.
- Navigate to Reporting > Data integrations.
- Choose the BigQuery Export card and select Edit.
-
To activate BigQuery logs, select the Enable Google Workspace data export to Google BigQuery checkbox.
- Under BigQuery project ID, select the project created for the Google Workspace integration.
- Under New dataset within the project, enter
gmail_logs_datasetas the name for the new BigQuery dataset. If you require a custom dataset name, please reach out to Expel Support for assistance. Providing the custom name allows us to properly configure this feature.
- Select Save.
- In the same project for the Google Workspace integration, navigate to the IAM & Admin console. Find the previously created service account, select the pencil icon, and then add the role BigQuery Job User to the service account.
-
Search for and add BigQuery Job User, and then select Save.
- In the Google Cloud console, navigate to BigQuery: https://console.cloud.google.com/bigquery
- Find the gmail_logs_dataset created in Step 2.
- Open the dropdown menu using the three dots on the right, and then select Open.
-
On the Dataset info screen, select EDIT DETAILS in the top right.
-
Select Enable table expiration. Enter the length of time to retain the log tables, and then select SAVE. Default retention is set to 60 days, but we recommend 30 days.
- Select SHARING > Permissions.
- Select Add principal.
-
Under New principals, add the service account, and then select the role BigQuery Data Viewer.
- Select SAVE.
Step 3: Update Your Context
If you do not want to specify any inboxes for a "do not remove" list, skip to Step 4. Quarantine inboxes are often called out as "Never remove" assets.
Working with your Customer Success Manager (CSM), add any inboxes that should be on the "do not remove" list as context for your environment. You will then be able to select those inboxes as "Never remove" assets when you enable the auto remediation in Workbench.
Note
If our SOC identifies an email that must be removed, any emails from inboxes added as "Never remove" assets are assigned to you as actions rather than being removed automatically.
Step 4: Return to the Main Setup Guide
Your Google Workspace device is now ready for the Remove Malicious Email auto remediation. You should now do one of the following:
- If you do not need to set up any other devices for this auto remediation, you can return to the Enable an Auto Remediation in Workbench guide to finish Step 2 of the process.
- If you need to set up additional devices for this auto remediation, or wish to use this device with multiple auto remediations, be sure to complete those setup guides as well before returning to the Enable an Auto Remediation in Workbench guide to finish Step 2 of the process. Make sure to follow the setup guide that is specific to your auto remediation, as device setup instructions are unique to each auto remediation and device.