Google Drive
The Google Drive connector indexes files in the firm's Google Drive: shared drives, My Drives and files shared with the signed-in account.
These connectors link the firm's own cloud account. They appear in the catalogue only after an administrator turns on Firm cloud connectors on Admin → Connectors. The switch is off by default. Cloud connectors must be private and shared with one or more groups.
Create the Google credential
Gmail and Google Drive use the same two kinds of credential. Create them in the Google Cloud Console for the firm's Google Workspace.
Option 1: OAuth app. Indexes what one Google account can see.
- Create a Google Cloud project and enable the API for the service: the Gmail API, the Google Drive API, or both.
- Configure the OAuth consent screen for your organization.
- Create an OAuth client ID of type Web application. Add these authorized
redirect URIs, starting with the address you open NorthLock Chat at:
-
<NorthLock address>/admin/connectors/gmail/auth/callback-<NorthLock address>/admin/connectors/google-drive/auth/callback - Download the client's JSON file.
- In NorthLock, upload or paste the JSON, then choose Authenticate and sign in with the Google account whose data you want to index.
Option 2: Service account. Indexes across the organization.
- Create a service account in the Google Cloud project and download a JSON key.
- In the Google Workspace Admin console, give the service account domain-wide delegation for the scopes listed below.
- In NorthLock, upload or paste the JSON key, and enter the Primary Admin Email: an admin or owner of the Google organization.
Scopes
https://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/admin.directory.group.readonlyhttps://www.googleapis.com/auth/admin.directory.user.readonly
To use one OAuth credential for both Gmail and Google Drive, see Using one credential for Gmail and Google Drive.
Set it up
- Go to Admin → Connectors and choose Google Drive.
- Create or pick a credential (see above).
- Choose what to index: - General: turn on any of Include shared drives, Include My Drive (with a service account, Include Everyone's My Drive) and Include All Files Shared With You. - Specific: comma-separated Shared Drive URLs, Folder URLs (subfolders included) or My Drive Emails.
- Optional settings: - Specific User Emails: index only files these users can open. - Hide domain link-only files: skip files shared broadly (domain or public) that need the link to open.
- Save. Indexing starts on the box.