File Search Google Drive Setup Guide: Service Account with Domain-Wide Delegation
File Search Google Drive Setup Guide: Service Account with Domain-Wide Delegation
File Search Google Drive Setup Guide: Service Account with Domain-Wide Delegation
The recommended approach for access is with a custom admin role. The following instructions are functional but Moveworks is unsure if Google has any plans to deprecate this.
This document describes the option available to create a service account with Domain wide Delegation privileges, dedicated for Moveworks to ingest your Google Drive files, users, and groups for permission-enforced File Search. Moveworks will use the Service Account credentials to impersonate a Workspace admin, with privileges to read the desired folders/files, and groups/users of the Workspace.
From the top-left Navigation Menu, click APIs & Services > Credentials.
Click +Create Credentials > Service account.
For Service account name, enter Moveworks
(Optional) Enter Service account description, if desired
Click Create and Continue.
Click Done > Save.
Copy the Service Account email. You’ll need this later.
Create the service account key
Select the newly created Service Account.
Copy the Unique ID and save it for later. You’ll need this later.
At the top of the page, click Keys > Add Key > Create new key.
Make sure the key type is set to JSON and click Create.
You’ll get a message that the service account’s private key JSON file was downloaded to your computer. Save this JSON file, as you’ll need this later.
Click Close on the pop-up window.
In this step, make sure that each Google Drive Folder you wish to ingest has been shared access with the new Service Account with Custom Admin privileges that you have built in previous steps.

Configure Google Drive Connector in MW Setup
Create a Google Drive connector
Select Service Account Auth
Open the JSON Key text file from Step 2 and copy the content of the “private_key”
Open a new text file and paste the private key. Make sure new line characters, if applicable, are replaced with new lines. Once formatted correctly save the file as a .pem file type.
The formatting show look similar to the below:

Upload the .pem file from the previous step in the Gdrive Service Account Auth Private Key field.
Important: Under “Impersonated User”, provide the email of a Google Workspace admin, or user/service account with access to read all Users/Groups
Configure File Ingestion
Note, if user ingestion has not been set up previously, reach out to your Customer Success team