Install Google Drive

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

Creating and Selecting Projects

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

Google Drive API Activation

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

Service Account Creation and Access

  1. Access the IAM & Admin screen.
  1. Create a new Service Account if necessary.
  2. Select “Viewer” from the role list.

Key Creation

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

The private_key information should be added to include the BEGIN and END PRIVATE KEY fields.

Getting FileID and FolderID

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

Example link:

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

Here 1vNG371Q2ZAkC0X7e8AHm2lftTMRSqWO_ is the fileID.

Defining Save Source

  • Source Type: Google Drive
  • Name: File name
  • Update Interval in Hour: Determines how often the resource will be synchronized.
  • Client Email, Private Key, Token Uri, Folder Id and File Id must be retrieved from the JSON file of the Google Drive service account.