Google Drive Connection
Connect to Google Drive to use Google Drive List, Download, Upload, and Delete nodes in your workflows.
Configuration
| Field | Description | Required |
|---|---|---|
| Client ID | Your Google OAuth 2.0 Client ID | Yes |
| Client Secret | Your Google OAuth 2.0 Client Secret | Yes |
| Refresh Token | A long-lived refresh token for offline access | Yes |
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
- Go to the Google Cloud Console
- Create a new project (or select an existing one)
- Navigate to APIs & Services > Library
- Search for and enable the Google Drive API
Step 2: Create OAuth 2.0 Credentials
- Go to APIs & Services > Credentials
- Click Create Credentials > OAuth client ID
- 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
- Select Web application as the application type
- Add
https://developers.google.com/oauthplaygroundas an authorized redirect URI - Copy the Client ID and Client Secret
Step 3: Obtain a Refresh Token
- Go to the OAuth 2.0 Playground
- Click the gear icon (settings) in the top right
- Check Use your own OAuth credentials
- Enter your Client ID and Client Secret
- In the left panel, find Google Drive API v3 and select
https://www.googleapis.com/auth/drive - Click Authorize APIs and sign in with your Google account
- Click Exchange authorization code for tokens
- Copy the Refresh Token
Step 4: Create the Connection
- In the workflow automation platform, go to Connections
- Click Add Connection
- Select Google Drive as the type
- Enter your Client ID, Client Secret, and Refresh Token
- Click Test Connection to verify
Scopes
| Scope | Description |
|---|---|
https://www.googleapis.com/auth/drive | Full access to all files in Google Drive |
https://www.googleapis.com/auth/drive.file | Access 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".