An authorised Google Console account is required to use Google Drive.
Project Creation and Selection
Google Cloud Console page, access the APIs & Services screen.
Create a new project or select an existing project.
If the source to be added belongs to an organisation account, the project must be derived from that organisation.
Enable Google Drive API
Go to the APIs & Services screen.
Enable Google Drive API.
Create and access a service account
Go to the IAM & Admin screen.
Create a new Service Account if necessary.
Select the ‘Viewer’ option from the role list.
Create a key
Go to the Manage Keys option in the Service Account section.
Click the Create New Key button and create a key in JSON format.
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
Copy the sharing link of your file in Google Drive.
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.