Library / Tasks & Project Management
Tasks & Project Management
Onboard Nextcloud users from a form with Gmail approval and PostgreSQL checks
Runs on a user request form, checks PostgreSQL for duplicates, collects email approval, then provisions approved Nextcloud accounts over SSH and API and emails the new user their credentials.
What it does
## Automated Nextcloud User Onboarding with Email Approval, PostgreSQL Sync & Mobile QR ### How it works This workflow automates Nextcloud onboarding from a submitted request form. It checks PostgreSQL for an existing user, logs the request, routes duplicates or approval decisions by email, and then provisions approved users through SSH, PostgreSQL, Google Sheets, and the Nextcloud API. After provisioning, it generates a mobile QR login asset and sends the new user their welcome email with credentials and attachment. ### Setup steps - Configure the form trigger fields to collect the user details required for PostgreSQL, Nextcloud, and email notifications. - Add PostgreSQL credentials and verify the select, insert/update, and rejection logging queries match your user table schema. - Connect Google Sheets credentials and select the spreadsheet/ranges used for request logging and status updates. - Connect Gmail credentials for admin approval requests, duplicate-account notices, rejection notices, and welcome emails. - Configure SSH credentials and commands for creating the user's storage directory on the target server. - Set the Nextcloud API base URL, OCS endpoint, authentication credentials, and request payload for user provisioning. - Review the code nodes for temporary password generation, QR login URL construction, and attachment formatting before enabling the workflow. ### Customization You can adjust the admin approval email content, password rules, PostgreSQL schema mappings, Google Sheets columns, Nextcloud quota/groups, and the QR code URL format to match your onboarding policy.
The steps
- When Form Submitted
- Verify User in PostgreSQL
- Log to Google Sheets
- If User Exists
- Notify User Exists
- Request Admin Approval
- If Admin Approved
- Log Rejection in DB
- Notify Request Rejected
- Create Directory via SSH
- Create Temp Password
- Add User to DB
- Update Google Sheets Status
- Post to Nextcloud API
18 steps in total.
Similar automations
Code, Git & Developer ToolsDeploy and Manage Nextcloud Containers over SSH98 stepsCode, Git & Developer ToolsDeploy and Manage NextCloud in Docker over SSH43 stepsCode, Git & Developer ToolsInstall and Manage PostgreSQL or MySQL Databases over SSH14 stepsMonitoring, Ops & IncidentsTriage PostgreSQL blocking sessions with Ollama and Telegram approval15 steps