Google Drive Integration

Prerequisites

Set up Service Account

Set up service account in Google Cloud

In your Google Cloud Console dashboard:

  • Select the hamburger menu > APIs & Services > Credentials. Google takes you to your Credentials page.
Access the Credentials page for APIs and services
  • Select + CREATE CREDENTIALS > Service account.
Access the Credentials page for APIs and services
  • Enter a name in Service account name, and an ID in Service account ID. Refer to Creating a service account for more information.
  • Select CREATE AND CONTINUE.
  • Based on your use-case, you may want to Select a role and Grant users access to this service account using the corresponding sections.
  • Select DONE.
  • Select your newly created service account under the Service Accounts section. Open the KEYS tab.
  • Select ADD KEY > Create new key.
Create a new key
  • In the modal that appears, select JSON, then select CREATE. Google saves the file to your computer.
  • Enable each Google service API that you want to use:
  • Access your Google Cloud Console - Library. Make sure you're in the correct project.
  • Search for and select the API(s) you want to enable. For example, for the Gmail node, search for and enable the Gmail API. /// note | Some integrations need additional APIs The following integrations require the Google Drive API, as well as their own API:
  • Google Docs
  • Google Sheets
  • Google Slides ///
  • Select ENABLE.

Troubleshooting

Service Account can't access Google Drive files

A Service Account can't access Google Drive files and folders that weren't shared with its associated user email.

  1. Access your Google Cloud Console and copy your Service Account email.
  2. Access your Google Drive and go to the designated file or folder.
  3. Right-click on the file or folder and select Share.
  4. Paste your Service Account email into Add People and groups.
  5. Select Editor for read-write access or Viewer for read-only access.