Audit Google Drive file permissions for access control management
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs on a schedule (every day at 06:00). Along the way it connects Google Sheets, Gmail and Google Drive.
How it runs
Trigger: On a schedule (every day at 06:00).
- Create New Sheet (Google Sheets): create
- Get Recently Active Documents (Google Drive): work with file folder
- Has Shared with External Users (Filter): keeps only the items that match a condition
- For Each File (Loop Over Items (Split in Batches)): loops over the items in batches
- Flatten Rows (Edit Fields (Set)): sets or maps fields
- Rows to Items (Split Out): splits a list into separate items
- Permissions To Items (Split Out): splits a list into separate items
- Append to New Sheet (Google Sheets): append
- Filter: keeps only the items that match a condition
- Send Email Report (Execute Once) (Gmail): uses Gmail
…plus 2 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Drive + Google Sheets templates (720) · Other Gmail + Google Drive templates (465)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Filter
n8n-nodes-base.filter - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp - Split Out
n8n-nodes-base.splitOut - Aggregate
n8n-nodes-base.aggregate - Gmail
n8n-nodes-base.gmail - Google Drive
n8n-nodes-base.googleDrive - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
This n8n template reviews and audits recently active Google Drive files and reports on files with excessively open permissions. This shows how you can automate simple compliance tasks for access control management. File Sharing Permissions are routinely…