Use this file to discover all available pages before exploring further.
Back to Search AI connectors listThe Google Drive connector for Search AI extends search capabilities to content stored in Google Drive cloud storage, providing a seamless search experience across your drive files.
In the Google Cloud console, go to Menu > Google Auth Platform > Branding. Provide the application name, email address, app logo, and developer contact information.
Add the Search AI domain to Authorized domains.
Under Data Access, click Add or remove scopes and select the following Google Drive API scopes. Click Update.
.../auth/drive.file
.../auth/drive.appdata
.../auth/drive
Go to the Audience page and set the user type to External.
Set the publishing status. In Testing mode, only added test users can access the app. In Production mode, the app is available to all Google account users.To add test users in Testing mode, click ADD USERS on the same page.
Navigate to the Clients page and create a new client. Set Application type to Web Application, give it a name, and add one of the following as the Authorized redirect URI based on your region:
Each filter rule specifies a drive location and one or more conditions.Drive Location
Option
Description
User Drive
Only locations owned by the connected account
Shared Drive
Only locations shared with the connected account
All Drives
All locations from both User Drive and Shared Drive
User Domain
All locations within the user’s domain
ConditionsDefine conditions using a parameter, operator, and value. Supported parameters:
Parameter
Description
Folder ID
Ingest files from specific folders. Find the folder ID in the Google Drive URL after folders/. Example: for https://drive.google.com/drive/folders/1dyUEebJaFnWa3Z4nXXXXAXQ7mfUH11g, the ID is 1dyUEebJaFnWa3Z4nXXXXAXQ7mfUH11g.
Mime Type
Ingest a specific file type (e.g., application/pdf). Supported: application/msword, application/pdf, text/plain, application/vnd.google-apps.document, application/vnd.google-apps.presentation.
File Name
Ingest files matching specific file names.
You can also add custom query parameters. Refer to Google Drive API search terms for the full list of supported parameters and values.Multiple rules and conditions
Add multiple rules to a filter. For example, include all files from a specific folder and all files containing a keyword in the filename.
Add multiple conditions to a single rule to narrow results. For example, ingest only PDF files from a specific folder.
The Google Drive connector imports file permissions and access lists from Google Drive along with content, so Search AI returns answers only for files the requesting user can access.
Search AI supports file-level permissions. The following access types are handled:People with accessSearch AI reads user information from each file. Any user with view or read access can access answers generated from that file.Example — two users with read access:Example — a user and a user group with access (where hr-team@example.com is the permission entity for the group):Anyone with linkTreated as public access. All users can access files with this permission type.Domain-specific accessSearch AI supports domain-scoped access and verifies user identity against the specified domain.
When a file is shared with a user group or domain, the group or domain name is stored as a permission entity in Search AI. You must associate individual users with that permission entity to grant them access.Use the Permission Entity API to add user IDs to the corresponding permission entity.Example: A file is shared with hr-domain@example.com. This group is stored as a permission entity. To give the five HR team members access, use the Permission Entity API to add their user IDs to this permission entity.
Configure access control on the Permissions and Security tab:
Option
Behavior
Permission Aware
Maintains default permissions from Google Drive
Public Access
Overrides Google Drive permissions; all users can access the content
You can configure this setting during initial connector setup or update it at any time on the Permissions & Security tab. Updated permissions apply to content ingested during the next sync.