Use this comprehensive n8n workflow to automate daily security auditing of Google Drive file permissions. Identify files shared externally or publicly, log them in Google Sheets, and receive detailed reports via Gmail.
Download this n8n workflow template and start using it instantly.
IT Security Professionals needing automated data access auditing.
Compliance Officers tracking external data sharing within cloud storage.
Power users concerned about data leakage and improving security posture.
Anyone looking for robust n8n templates for SecOps tasks.
Managing file permissions across numerous Google Drive documents can be challenging, often leading to files retaining overly permissive settings (like 'shared with anyone' or external invites) long after they are necessary. This automated n8n workflow addresses this critical security gap by running a daily audit.
This robust n8n workflow uses the n8n schedule trigger to initiate a daily scan of recently modified files. It specifically identifies documents, spreadsheets, and presentations that are either publicly accessible or shared outside the internal domain (defined here as 'example.com'). All sensitive findings are meticulously logged into a new Google Sheet for record-keeping and summarized in an immediate email report, ensuring that potential access control risks are promptly actioned. This is a crucial n8n template for access management.
This powerful n8n workflow operates in four main stages, starting with the n8n trigger:
audit-YYYYMMDD).anyone type (public link).fileid, filename, user, role).To utilize this n8n template, follow these setup steps:
sendTo parameter in this n8n node to your desired recipient email address.!item.emailAddress.endsWith('example.com')) to reflect your organization’s domain (e.g., replace example.com with mycompany.com). Schedule Trigger (n8n trigger): Initiates the entire n8n workflow daily at 6 AM. This acts as the backbone for automated security monitoring.
Google Sheets (Create New Sheet): Creates a new audit log sheet within a specified master Google Sheets document using an n8n node. The sheet name is dynamic, incorporating the current date (audit-{{ $now.format('yyyyMMdd') }}).
Google Drive (Get Recently Active Documents): This critical n8n node uses a query (modifiedTime > '{{ $now.minus({ 'days': 1 })}}') to fetch files active in the last 24 hours, ensuring the audit focuses on recent activity.
Filter (Has Shared with External Users): A core logic n8n node that uses advanced expressions to flag files that are shared externally (emails not matching the domain) or publicly shared (type === 'anyone').
Split Out (Permissions To Items): Transforms the array of permission objects associated with a single file into individual items, allowing each permission setting to be processed as a separate row in the audit report.
Set (Normalise Fields): A data manipulation n8n node that standardizes the file and permission data into clear columns (e.g., file_name, user, role), preparing it for insertion into Google Sheets.
Google Sheets (Append to New Sheet): Logs all identified high-risk permissions data into the audit sheet created at the start of the n8n workflow.
Gmail (Send Email Report (Execute Once)): Sends a summarized email report containing links to the full log and a plaintext list of publicly shared and externally shared documents, providing instant visibility into security risks.
Automate comprehensive website SEO audits, Core Web Vitals checks, and generate AI-driven recommendations using this powerful n8n workflow. Integrate with Google Sheets and Slack for alerts. Leverage the n8n node system for full customization.

Automate JSON-LD Schema Markup generation and auditing using an n8n workflow powered by an AI Agent (via OpenRouter). Triggered by a simple form submission, the resulting code is emailed to you.

Convert Telegram voice notes directly into structured Trello tasks instantly using this powerful n8n workflow. It leverages OpenAI for transcription and Groq for intelligent parsing. Explore advanced n8n templates for AI task management.

Automate interview feedback quality audits using this n8n workflow. It leverages GPT-4o-mini to score responses, updates Google Sheets, and sends tailored coaching reports via Slack.

Use this robust n8n workflow to automate website security header audits. Score results, trigger AI remediation suggestions using LLMs, and log detailed reports directly to Google Sheets. A perfect example of advanced n8n templates for DevOps and security teams.


Freelance consultant based in the UK specialising in AI-powered automations. I work with select clients tackling their most challenging projects. For business enquiries, send me an email at [email protected] LinkedIn: https://www.linkedin.com/in/jimleuk/ X/Twitter: https://x.com/jimle_uk







































