File Search Google Drive Setup Guide: Google Workspace User with Custom Admin Role
File Search Google Drive Setup Guide: Google Workspace User with Custom Admin Role
File Search Google Drive Setup Guide: Google Workspace User with Custom Admin Role
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.
Note: If you wish to leverage an existing Google Workspace user email with admin privileges to read all Workspace Users and Groups, you can skip ahead to Step 3, and use that Admin email for all following steps. This document describes the option available to create a new user email with Custom Admin privileges, dedicated for Moveworks to ingest your Google Drive files, users, and groups for permission-enforced File Search.
Note: If you have already configured a Project, jump to
After you have enabled the API, you will be presented with a dashboard. On the left panel, Navigate to APIs & Services > OAuth consent screen from the left menu side.

Select Internal under the User Type and click CREATE
Add an Application name (e.g Moveworks) and User support email (e.g Google admin email)
Add moveworks.com as an Authorized domain
Add Developer contact information (e.g. Google admin email)
Click SAVE AND CONTINUE to next step, to add OAuth Scopes
Select ADD OR REMOVE SCOPES, and check the following scopes:
…/auth/drive.readonly…/auth/drive.metadata.readonly.../auth/admin.directory.user.readonly.../auth/admin.directory.group.readonlyClick Update.

From the Summary screen, go to the Credentials page

Select + Create Credentials and create a new OAuth client ID.
Select Web application for Application type on the following page.

Add https://www.moveworks.com (or another Moveworks CS-team provided Authorized Redirect URI) as an Authorized redirect URI.
Once complete, a confirmation modal should display your client ID and client secret. Download the JSON file to a secure environment.

Once you have the JSON file securely stored, set up time with your Moveworks Customer Success team to transfer and authorize the credentials securely. The Customer Success Team will then generate a URL (using the JSON file and Redirected URI). You must use the Workspace User you created to authenticate the credentials (3-legged authentication). Any file/folder that this Workspace User has access to will be accessible via API using these OAuth credentials.
To allow the bot access to a particular Shared Drive and the contents within, click on + Add members when in the Shared Drive.
Note, if user ingestion has not been set up previously, reach out to your Customer Success team