Install Google Drive

An authorised Google Console account is required to use Google Drive.

Project Creation and Selection

  1. Google Cloud Console page, access the APIs & Services screen.
  1. Create a new project or select an existing project.
  1. If the source to be added belongs to an organisation account, the project must be derived from that organisation.

Enable Google Drive API

  1. Go to the APIs & Services screen.
  2. Enable Google Drive API.

Create and access a service account

  1. Go to the IAM & Admin screen.
  1. Create a new Service Account if necessary.
  2. Select the ‘Viewer’ option from the role list.

Create a key

  1. Go to the Manage Keys option in the Service Account section.
  1. Click the Create New Key button and create a key in JSON format.
  1. Get the following information from the downloaded JSON file:
    • private_key
    • client_email
    • token_uri

Sources can be added using this information. The private_key information must be added including the BEGIN and END PRIVATE KEY fields.

Obtaining FileID and FolderID

  1. Copy the sharing link of your file in Google Drive.
  2. Record the fileID and folderID information contained in the link.

Example link: https://drive.google.com/file/d/1vNG371Q2ZAkC0X7e8AHm2lftTMRSqWO_/view?usp=sharing

Here, the part 1vNG371Q2ZAkC0X7e8AHm2lftTMRSqWO_ is the fileID.

Save Source Definition

  • Source Type: Google Drive
  • Name: File name
  • Update Interval in Hour: Specifies how often the source will be synchronised.
  • Client Email, Private Key, Token Uri, Folder Id, and File Id information must be obtained from the JSON file belonging to the Google Drive service account.