Skip to content

Google Drive Connection

Connect to Google Drive to use Google Drive List, Download, Upload, and Delete nodes in your workflows.

Configuration

FieldDescriptionRequired
Client IDYour Google OAuth 2.0 Client IDYes
Client SecretYour Google OAuth 2.0 Client SecretYes
Refresh TokenA long-lived refresh token for offline accessYes

Setting Up Google OAuth Credentials

The setup process is the same as for Google Sheets. If you already have a Google Sheets connection, you can reuse the same OAuth credentials -- just create a new connection with the google_drive type using the same Client ID, Client Secret, and Refresh Token.

Step 1: Create a Google Cloud Project

  1. Go to the Google Cloud Console
  2. Create a new project (or select an existing one)
  3. Navigate to APIs & Services > Library
  4. Search for and enable the Google Drive API

Step 2: Create OAuth 2.0 Credentials

  1. Go to APIs & Services > Credentials
  2. Click Create Credentials > OAuth client ID
  3. If prompted, configure the OAuth consent screen first:
    • Choose External for testing or Internal for Google Workspace
    • Fill in the required fields (app name, user support email, developer email)
    • Under Test users, add the Google account email you will use to authorize — without this, you will get a 403 "access_denied" error during authorization
  4. Select Web application as the application type
  5. Add https://developers.google.com/oauthplayground as an authorized redirect URI
  6. Copy the Client ID and Client Secret

Step 3: Obtain a Refresh Token

  1. Go to the OAuth 2.0 Playground
  2. Click the gear icon (settings) in the top right
  3. Check Use your own OAuth credentials
  4. Enter your Client ID and Client Secret
  5. In the left panel, find Google Drive API v3 and select https://www.googleapis.com/auth/drive
  6. Click Authorize APIs and sign in with your Google account
  7. Click Exchange authorization code for tokens
  8. Copy the Refresh Token

Step 4: Create the Connection

  1. In the workflow automation platform, go to Connections
  2. Click Add Connection
  3. Select Google Drive as the type
  4. Enter your Client ID, Client Secret, and Refresh Token
  5. Click Test Connection to verify

Scopes

ScopeDescription
https://www.googleapis.com/auth/driveFull access to all files in Google Drive
https://www.googleapis.com/auth/drive.fileAccess only to files created by this application

Use drive.file for limited access if you only need to work with files your workflows create.

WARNING

Refresh tokens can expire if the OAuth consent screen is in "Testing" mode and the token has not been used for 7 days. To avoid this, either publish your OAuth app or use a Google Workspace account with the consent screen set to "Internal".