Connecting to Google Drive

Prev Next

Syniti Knowledge Platform (SKP) allows you to connect to Google Drive for the following usage types:

  • File Storage

  • Replication

Configuration Summary

The following table provides a high-level summary of the configurations you need to perform in Google Drive if you want to maintain a separate folder to integrate with the SKP.

S.No

Configuration Steps

Reference Materials

1

Register a new Google Cloud project

  • Name your project as Syniti Drive Integration and note your Project ID

* Create a Google Cloud project

* Enable Google Workspace APIs

* Create a service account

* Create credentials for a service account

2

Enable Google Drive API

  • Access APIs & Services > Library > Google Drive API and click Enable

3

Create Service Account and generate Key

  1. Access APIs & Services > Credentials and select Create Credentials > Service Account to create a new service account.

  2. In the new service account, access the Keys tab and click Add Key > Create New Key and select the JSON format.

  3. Click Create to download the JSON file and keep it securely.

4

Share Drive/Folders with Service Account

  1. Copy the service account email (for example, synidrive-sa@project-id.iam.gserviceaccount.com).

  2. In Google Drive, share the target folder/drive with this email address and grant appropriate permissions.

5

If accessing a Shared Drive (this step is for Shared Drives)

  1. Right-click the required Shared Drive and select Manage members.

  2. Add service account email with appropriate role and note the Shared Drive ID from URL.

6

Create a system datastore connection in the SKP using the SharePoint Online connection properties listed below

* Datastores

* Create a Connection

Connection Properties

Field Name

Description

Service Account JSON

required

The content of the Service Account JSON key file.

For user/shared drive access, the service account must have Domain-wide Delegation configured in Google Workspace Admin Console. Paste the entire JSON content here.

Drive Type

required

Select the type of Google Drive to access.

* ServiceAccount: The service account's own Drive.

* SharedDrive: A team-owned Shared Drive (enter the drive ID).

* UserDrive: A specific user's Drive via domain-wide delegation (enter the user email).

Root Folder ID

The unique identifier of the folder that the application accesses for uploads, downloads, or file management. Enter root for the drive root, or paste a folder ID from the Drive URL.

Extended Properties

Use the + Add Property button to add any additional connection properties.