- Home
- Resources
- Integrations
- Google Drive
Google Drive n8n integrationAutomate Google Drive with n8n.
A file lands in Drive and the rest of the run takes over. The Google Drive n8n integration covers 17 operations across 4 resources, from uploading a file to creating a shared drive, plus a trigger, the node that starts a workflow, watching one file, folder or drive.
Verified Trustpilot reviews · AI, automation & growth agency
What does the Google Drive n8n integration actually cover?
The Google Drive node works on the drive itself: files, folders and shared drives, through 17 operations spread over 4 resources. The trigger node watches a single file, a folder or a whole drive, and pushes an item whenever a change matches the criteria. Between the two, the manual round trip disappears: open Drive, download, rename, share again.
Start with the invoice folder that files itself. The trigger reports an update, file.download pulls the binary content into the run, a parsing step reads the total, and the row lands in Google Sheets. The accounting folder stays the source of truth, and nobody opens Drive to copy a number by hand.
Second result: a delivery that shares itself. folder.create opens the client folder, file.upload drops the signed document into it, folder.share grants the Reader role to the client email address, and the announcement goes out through Slack or Gmail. Three operations replace a checklist.
Third: end-of-month housekeeping. fileFolder.search lists a drive with Return All enabled, a filter keeps what has aged, and file.update flips Move to Trash on each item. Same logic for structure, where folder.create and file.move reorganize a messy drive in a single run.
The node stops at 17 operations. Permission listings, revision history, anything else the Google Drive API exposes goes through the HTTP Request node, which reuses the same credential, the stored authorization n8n keeps for your account, through predefined authentication. No second connection to build.
Two limits are worth knowing before building. Search also returns names that only partially match, and a Folder filter gives back the direct children of the chosen folder, nothing deeper. There is no operation for the most recent file either: the documented route chains a search with Return All, a Sort node on modifiedTime in descending order and a Limit node keeping one item, before a second Google Drive node targets that file by ID with the expression {{ $json.id }}, a value read from the previous item.
Still choosing a platform? The n8n review compares hosting and pricing models, and the n8n training walks through building these Drive workflows step by step.
How do you connect Google Drive to n8n?
- 01
Create the credential once
In n8n, open the Credentials menu and create a Google Drive credential. The node then offers it in its dropdown, and every other workflow reuses the same one. Two methods are available: OAuth2, which n8n recommends, and Service Account. On n8n Cloud, Managed OAuth2 settles it with one click on Sign in with Google, and nothing has to be set up in the Google Cloud Console.
- 02
Build the OAuth2 app for a self-hosted instance
Outside n8n Cloud, Managed OAuth2 is unavailable, so build a Custom OAuth2 credential instead. In the Google Cloud Console, create a project, enable the Google Drive API under APIs & Services > Library, then configure the consent screen with an App name and a User support email. Finish with an OAuth client ID of type Web application, and paste the OAuth Redirect URL shown by n8n into Authorized redirect URIs.
- 03
Or sign in as a service account
When a robot account fits better than a personal one, pick Service Account. In the Google Cloud Console, create the service account, open its Keys tab, add a new key in JSON format and download the file. Back in n8n, paste
client_emailinto Service Account Email andprivate_keyinto Private Key, without the quotation marks around it.
What starts a Google Drive workflow?
Google Drive Trigger is the node that starts a workflow when something happens in Google Drive. It listens to 1 events, listed below by family. Pick one or several, activate the workflow: n8n registers the webhook on your Google Drive account.
What you see in n8n
Every event, by family
One row per object, one chip per action. The event to tick in the node is object.action; hover a chip to read exactly when it fires.
file.*1Configuration notes
01Google Drive Trigger
The trigger node is version 1 and it polls: n8n asks the Google Drive API what changed, at the interval you choose, instead of waiting for Google to announce it. That mode brings a delay equal to the interval, and nothing to configure on the Drive side.
Key parameters
- Trigger On: the scope being watched, which then asks for File, Folder or Drive To Watch. A drive is picked from the list or given by ID through an expression.
- Watch For: the event the node listens to.
- Poll Times: the check interval, once every minute by default and no faster.
- File Type (Options): fires only when the file is of that type.
02File Updated
One event lives on this node, fileUpdated, in the single file family. Once the workflow is active, every change matching the criteria produces an execution.
Key parameters
- Watch For: holds
fileUpdated, the File Updated event. - File or Folder: the object under watch, which decides whether the event covers one document or everything a folder contains.
What can the Google Drive node do?
The Google Drive node exposes 17 operations across 4 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.
| Resource | Create | Get | Update | Copy | Create From Text | Delete | Delete | Delete | Download | Get Many | Move | Search | Share | Upload |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| File | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||
| File/Folder | ✓ | |||||||||||||
| Folder | ✓ | ✓ | ✓ | |||||||||||
| Shared Drive | ✓ | ✓ | ✓ | ✓ | ✓ |
Operations index
File
8 operationsCopy file
file.copyWhat you see in n8n
Notes & use cases
Copying leaves the original untouched and returns a second file, with its own ID, ready to be edited or shared without risk.
Key parameters
- File: the file to copy, picked from the list, by URL, or by ID with an expression such as
{{ $json.id }}. - Parent Drive and Parent Folder: the drive and the folder where the copy lands, both required.
- File Name: left empty, Drive names the copy “Copy of” followed by the original file name.
Create file from text
file.createFromTextWhat you see in n8n
Notes & use cases
Text produced upstream, a summary, a CSV payload, a transcript, becomes a real file in Drive without ever touching a local disk.
Key parameters
- File Content: the text the file is built from.
- File Name: left empty, the file is called
Untitled. - Parent Drive and Parent Folder: the destination, chosen from the list, by URL or by ID.
- Convert to Google Document (Options): creates a Google Document instead of the default .txt, and needs the Google Docs API enabled in the Google API Console.
Delete a file
file.deleteFileWhat you see in n8n
Notes & use cases
Deleting closes the life of a file in the drive. A single option decides the rest: bin, or immediate removal.
Key parameters
- File: the target file. Its ID sits in the shareable link, the one Share > Copy link gives you, between
/d/and/edit. - Delete Permanently: on, the file goes straight away; off, it moves to the trash.
Download file
file.downloadWhat you see in n8n
Notes & use cases
Pulling the bytes into the run is what makes a file usable by the next node: an OCR step, a mail attachment, an upload somewhere else.
Key parameters
- File: the file to download, selected from the list, by URL or by ID.
- Put Output File in Field: the name of the binary field the following nodes will read,
datafor instance. - File Name: the name carried by the output file,
data.pdffor instance.
Move file
file.moveWhat you see in n8n
Notes & use cases
A move changes the parent folder without creating a duplicate. The operation asks for nothing beyond the file and its destination.
Key parameters
- File: the file to move.
- Parent Drive: the drive the file is moved to.
- Parent Folder: the folder that receives it.
Share file
file.shareWhat you see in n8n
Notes & use cases
Sharing adds a permission to a file. That is how a client, a colleague or an entire domain gets access without anyone opening the Drive interface.
Key parameters
- Permissions: the permission being added.
- Role: Reader, Commenter, Writer, File Organizer, Organizer or Owner.
- Type: User and Group need an Email Address, Domain needs a Domain, Anyone opens it to everybody, and Allow File Discovery decides whether search can surface it.
- Send Notification Email and Email Message: the notification mail and the plain text message it carries.
Update file
file.updateWhat you see in n8n
Notes & use cases
An update rewrites the file in place: new content, new name, new metadata, and the ID stays the same for everything already pointing at it.
Key parameters
- File to Update: the file being rewritten.
- Change File Content and Input Data Field Name: send new binary data, taken from the field listed in the Binary tab of the Input panel.
- New Updated File Name: left empty, the name does not change.
- Move to Trash (Options): only the owner of a file may trash it.
Upload file
file.uploadWhat you see in n8n
Notes & use cases
Any binary item already in the run, a generated PDF, a fetched image, a mail attachment, reaches the drive through this operation.
Key parameters
- Input Data Field Name: required, the binary field carrying the file.
- Parent Drive and Parent Folder: both required, the drive and the folder that receive the upload.
- File Name: left empty, the original file name is kept.
- Simplify Output (Options): returns a lighter response instead of every field.
File/Folder
1 operationSearch files and folders
fileFolder.searchWhat you see in n8n
Notes & use cases
Listing what a drive holds goes through this operation, either by name or with the Google query string syntax.
Key parameters
- Search Method: Search File/Folder Name also returns partial matches, Advanced Search takes a query string.
- Return All and Limit: Return All chains the API pages, otherwise Limit caps the number of items.
- Filter: Drive, Folder (direct children only), What to Search for Files, Folders or both, File Types by MIME type, Include Trashed Items, and Fields.
Folder
3 operationsCreate folder
folder.createWhat you see in n8n
Notes & use cases
A folder created from a workflow gives each client, project or month its own place, named by an expression rather than by hand.
Key parameters
- Parent Drive and Parent Folder: both required, the drive and the parent folder of the new one.
- Folder Name: left empty, the folder is called
Untitled. - Folder Color (Options): an RGB hex string; an unsupported color falls back to the closest one in the palette.
{{ $json.company }} under the clients folder, ready for the documents that follow.Delete folder
folder.deleteFolderWhat you see in n8n
Notes & use cases
Removing a folder takes away the container, with the same choice as for a file: trash, or gone for good.
Key parameters
- Folder: the folder to delete, picked from the list, by URL or by ID.
- Delete Permanently (Options): on, the folder disappears immediately; off, it lands in the trash.
Share folder
folder.shareWhat you see in n8n
Notes & use cases
Setting permissions on the folder instead of on each file is the practical way to open a whole space at once.
Key parameters
- Folder: the folder being shared.
- Permissions: Role and Type, exactly as for a file.
- Transfer Ownership (Options): hands ownership to the chosen user and downgrades the current owner to writer; Move To New Owners Root only applies when the item is not in a shared drive.
Shared Drive
5 operationsCreate shared drive
drive.createWhat you see in n8n
Notes & use cases
Opening a shared drive from a workflow comes down to one field, its name, and to options that fix how it behaves from day one.
Key parameters
- Name: the name of the shared drive being created.
- Hidden (Options): the drive stays out of the default view.
- Color RGB, Restrictions and Capabilities (Options): the color as an RGB hex string, and the collections that frame what the drive allows.
Delete shared drive
drive.deleteDriveWhat you see in n8n
Notes & use cases
No option at all on this one. A single field points at the shared drive, and it is permanently gone the moment the node runs, which is exactly why it deserves a guard upstream.
Key parameters
- Shared Drive: the drive to delete, chosen from the list, by URL or by ID, for instance
{{ $json.id }}.
Get shared drive
drive.getWhat you see in n8n
Notes & use cases
Reading one shared drive returns its record, which is what a workflow needs before deciding whether to write into it.
Key parameters
- Shared Drive: the drive to read.
- Use Domain Admin Access (Options): issues the request as a domain administrator, and access is granted when the requester administers the domain the shared drive belongs to.
Get many shared drives
drive.listWhat you see in n8n
Notes & use cases
The inventory operation: it returns the shared drives the credential can see, all of them or only the first ones.
Key parameters
- Return All and Limit: every shared drive, or a capped number of them.
- Query (Options): a query string that narrows the search among shared drives.
- Use Domain Admin Access (Options): runs the listing with domain administrator rights.
Update shared drive
drive.updateWhat you see in n8n
Notes & use cases
Renaming or recoloring a shared drive after the fact goes through Update Fields, which only sends what you fill in.
Key parameters
- Shared Drive: the drive being updated.
- Name: the updated name of the shared drive.
- Color RGB and Restrictions: the new color as an RGB hex string, and the collection of restrictions.
Need help automating Google Drive with n8n?
A person reads every message.
Google Drive and n8n, common questions
01Is the Google Drive n8n integration free?
02Which credentials and rights does the Google Drive node need?
03What are the limits of the Google Drive node in n8n?
04How quickly does the Google Drive Trigger react to a change?
05n8n or Make for Google Drive?
Get our weekly integration tips.
No spam. Unsubscribe anytime.


