Automate Google Drive File Sharing N8N Workflow — Complete Guide [2026]

Learn how to automate google drive file sharing n8n workflow with this step-by-step guide. Includes workflow examples, tips, and best practices for 2026.
googleDrive
splitInBatches
code
+5
Workflow Identifier: 1483
NODES in Use: manualTrigger, set, googleDrive, splitInBatches, code, merge, noOp, stickyNote
Automate Google Drive file sharing with n8n and GoogleDrive

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow makes all files in a Google Drive folder publicly viewable and creates direct download links for each file. It stops you from manually changing permissions or copying URLs one by one. After running, you get a list of download links ready to share with others.

It saves time and avoids mistakes in sharing files with team members or clients.


Who should use this workflow

This workflow is for people who upload many files to Google Drive folders and want quick public access links. It helps managers, remote teams, or anyone who needs to share multiple Google Drive files without doing it manually.

No coding skill is needed, but basic n8n use is helpful.


Tools and services used

  • n8n: Workflow automation platform.
  • Google Drive API: To list files and change sharing permissions.
  • OAuth2 Credentials: To connect n8n with Google Drive securely.

How the workflow works: Inputs → Process → Outputs

Inputs

  • Google Drive folder ID where files are stored.
  • Valid OAuth2 credentials for Google Drive access.

Process

  • Fetch all files from the specified Google Drive folder.
  • Split files into batches of 50 to avoid API overload.
  • Change each file’s permission to “anyone with the link can view”.
  • Generate direct download URLs using a code node.
  • Combine all file download information into a single list.

Outputs

  • A list of file names paired with direct download links.
  • Files are publicly accessible with correct sharing permissions set.

Beginner step-by-step: How to build this in n8n

1. Importing the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor.
  3. Select “Import from File” and upload the downloaded workflow.

2. Configure credentials and folder ID

  1. Add your Google Drive OAuth2 credentials in n8n if not already set.
  2. Find the Set Folder ID node and enter your Google Drive folder ID (not folder name).

3. Check and test

  1. Run the Manual Execute Workflow node to start the process once.
  2. Verify the output lists download links and file names correctly.
  3. Make sure there are no errors related to permissions or file access.

4. Activate the workflow

  1. Toggle the workflow active switch to run in production.
  2. Optionally, add triggers like HTTP Trigger nodes for automated runs.
  3. For full control, consider self-host n8n.

Common problems and fixes

Permission denied error when changing sharing status

Cause: Your OAuth2 credentials lack rights or the wrong Google Drive account is connected.

Fix: Reauthorize credentials with proper access and make sure the account owns or can edit files.

No files found after listing from folder

Cause: The folder ID is wrong or the folder is empty.

Fix: Verify folder ID by getting it from the folder link, not folder name. Confirm files exist inside.


Customization ideas

  • Use expressions in Set Folder ID node to change folder dynamically.
  • After merging links, add nodes like Google Sheets or Airtable to save download URLs.
  • Add an email node like Gmail to send generated links automatically.
  • Change batch size in Loop Over Items node to tune performance.

Summary of benefits

✓ Saves time by automating sharing Google Drive files publicly.
✓ Avoids permission errors by standardizing file access.
✓ Produces ready-to-use direct download links for sharing.
✓ Handles large folders efficiently in batches.
✓ Easy to activate and customize inside n8n.


Automate Google Drive file sharing with n8n and GoogleDrive

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

It uses the Google Drive node with the “share” operation, setting permissions to “anyone with the link can view” for each file.
Yes, it supports Shared Drives using the “supportsAllDrives” option in the Google Drive node.
The Google Drive folder ID string must be used, not the folder name.
This error occurs if OAuth2 credentials lack proper Google Drive permissions or the connected account does not own or have editor rights on the files.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.