Google Drive for Work source JSON modification

Many source configuration parameters can be set through the user interface. Others, such as rarely used parameters or new parameters that aren’t yet editable through the user interface, can only be configured in the source JSON configuration.

This article explains how to configure Google Drive for Work source parameters, whether they’re already listed in the JSON or not.

Configuring listed and unlisted parameters

Changing a parameter value in the source JSON configuration | Coveo

If the parameter you want to change is already listed in the parameters section of the source JSON configuration, just modify its value in the JSON configuration.

If the parameter isn’t listed in the parameters section, copy the entire parameter example object from the Reference section below and paste it into the parameters section of the source JSON configuration. Then, modify the value in the JSON configuration, if necessary.

Important

If a parameter has a value attribute that contains sensitive information, set the sensitive attribute to true. Otherwise, the value will appear in clear text in the JSON configuration.

Tip

Document the changes you make to the source JSON configuration in the Change notes area below the JSON configuration. This ensures that you can easily revert to a previous configuration if needed.

Reference

This section provides information on the Google Drive for Work source parameters that you can only modify through the JSON configuration.

If a JSON configuration parameter isn’t documented in this article, configure it through the user interface instead.

CommentsPerPage (Integer)

Specifies the number of file comments per page to fetch from Google Drive.

The number must be between 1 and 101. The default value is 100.

Example
"CommentsPerPage": {
  "sensitive": false,
  "value": "100"
}

CrawlFolders (Boolean)

Specifies whether folders should be crawled. When set to false, the source indexes the files in folders, but not the folders themselves. When set to true, an item with filetype field value folder is indexed for each crawled folder.

The default value is true.

Example
"CrawlFolders": {
  "sensitive": false,
  "value": "false"
}

CrawlSharedWithMeItems (Boolean)

Specifies whether to crawl the user’s Shared with me items.

The default value is true.

Example
"CrawlSharedWithMeItems": {
  "sensitive": false,
  "value": "false"
}

ForceIndexSharedDrivesNotManagedByUser (Boolean)

Specifies whether to force the indexing of files from Shared drives where the user isn’t the drive manager. Setting the value to true can lead to duplicate items if multiple users can view a given shared drive.

The default value is false.

Example
"ForceIndexSharedDrivesNotManagedByUser": {
  "sensitive": false,
  "value": "false"
}

IndexGoogleAppsDocThumbnails (Boolean)

Specifies whether to download and index the thumbnail of a Google Apps document.

The default value is false.

Example
"IndexGoogleAppsDocThumbnails": {
  "sensitive": false,
  "value": "false"
}

IndexNativeDocThumbnails (Boolean)

Specifies whether to download and index the thumbnail of a native document.

The default value is false.

Example
"IndexNativeDocThumbnails": {
  "sensitive": false,
  "value": "false"
}

IndexSharedDrives (Boolean)

Specifies whether to index content from the user’s Shared drives.

The default value is false.

Example
"IndexSharedDrives": {
  "sensitive": false,
  "value": "false"
}

IndexUserDrives (Boolean)

Specifies whether to index content from the user’s My Drive.

The default value is true.

Example
"IndexUserDrives": {
  "sensitive": false,
  "value": "false"
}

IndexUsers (Boolean)

Specifies whether to index Google Drive users. When set to true, an item with filetype field value user is indexed for each crawled user.

The default value is false.

Example
"IndexUsers": {
  "sensitive": false,
  "value": "false"
}

OnlyIndexFilesSharedToDomainAndSearchable (Boolean)

Specifies whether to index only the files shared to the current domain where the search availability is enabled on the link.

Default value is false.

Example
"OnlyIndexFilesSharedToDomainAndSearchable": {
  "sensitive": false,
  "value": "false"
}

OnlyIndexFilesWithAllowFileDiscoveryPermission (Boolean)

Specifies whether to index only shared files where the search availability is enabled on the link.

Default value is false.

Example
"OnlyIndexFilesWithAllowFileDiscoveryPermission": {
  "sensitive": false,
  "value": "false"
}

ResultsPerPage (Integer)

The number of results per page when fetching Google Drive resources.

The number must be between 1 and 1001. The default value is 100.

Example
"ResultsPerPage": {
  "sensitive": false,
  "value": "100"
}

TimeoutTimeMs (Integer)

The maximum time (in milliseconds) a Google Drive request can take before returning a successful response.

The default value is 300000 (5 minutes).

Example
"TimeoutTimeMs": {
  "sensitive": false,
  "value": "300000"
}

UseFolderLinksInMyDrive (Boolean)

Specifies whether to use folder links that open directly in My Drive.

The default value is true.

Example
"UseFolderLinksInMyDrive": {
  "sensitive": false,
  "value": "false"
}