Onboard Nextcloud users with Gmail approvals, PostgreSQL, and Google Sheets
Ready for 3.0What this workflow does
This workflow has 18 nodes and runs when someone submits an n8n form (“Request a Cloud Storage Account”). Along the way it connects Postgres, Google Sheets and Gmail.
How it runs
Trigger: When someone submits an n8n form (“Request a Cloud Storage Account”).
- Verify User in PostgreSQL (Postgres): select
- Log to Google Sheets (Google Sheets): append or update
- If: checks a condition and branches into true / false
- Notify User Exists (Gmail): uses Gmail
- Request Admin Approval (Gmail): send and wait for a reply
- If: checks a condition and branches into true / false
- Create Directory via SSH (SSH): uses SSH
- Log Rejection in DB (Postgres): uses Postgres
- Create Temp Password (Code): runs custom JavaScript code
- Notify Request Rejected (Gmail): uses Gmail
…plus 7 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Gmail + PostgreSQL templates (82) · Other Google Sheets + PostgreSQL templates (71)
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 (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Postgres
n8n-nodes-base.postgres - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - SSH
n8n-nodes-base.ssh - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow collects account requests via an n8n form, checks PostgreSQL for existing users, and routes new requests to Gmail for admin approval. Approved users are provisioned in Nextcloud, synced to Google Sheets and PostgreSQL, and emailed…