Notify on anomalous Google Drive access and send weekly email summaries
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs on a schedule (cron 0 * * * *) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls admin.googleapis.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 * * * *) (plus 1 other trigger).
- Fetch Recent Google Drive Activity (HTTP Request): calls admin.googleapis.com (GET)
- Fetch Weekly Google Drive Data (HTTP Request): calls admin.googleapis.com (GET)
- Split Drive Activity Records (Split Out): splits a list into separate items
- Split Weekly Drive Activity Records (Split Out): splits a list into separate items
- Normalize Drive Access Event Data (Code): runs custom JavaScript code
- Normalize Weekly Drive Access Event (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Aggregate Hourly Access By User (Code): runs custom JavaScript code
- Aggregate Weekly Access By User (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
HTTP calls to: admin.googleapis.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Send Email
n8n-nodes-base.emailSend
From the author
Quick Overview This workflow monitors Google Workspace Drive audit logs on an hourly and weekly schedule, detecting bulk downloads, access bursts, and new access IPs, then emailing security alerts and a weekly activity digest while also logging both messages…