Automation library · Content

Onboard Nextcloud users with Gmail and PostgreSQL

Started by someone submitting a form, and works across Gmail, Google Sheets and Postgres. 18 steps, 2 branches: a working afternoon to understand properly.

Medium

18 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Logic 5Service 12

The steps in the order they run, from what starts it.

  1. 1When Form SubmittedForm triggerStarts it
  2. 2Verify User in PostgreSQLPostgresService
  3. 3Log to Google SheetsGoogle SheetsService
  4. 4If User ExistsIfLogic
  5. 5Notify User ExistsGmailService
  6. 6Request Admin ApprovalGmailService
  7. 7If Admin ApprovedIfLogic
  8. 8Create Directory via SSHSshService
  9. 9Log Rejection in DBPostgresService
  10. 10Create Temp PasswordCodeLogic
  11. 11Notify Request RejectedGmailService
  12. 12Add User to DBPostgresService
  13. 13Update Google Sheets StatusGoogle SheetsService
  14. 14Post to Nextcloud APIHttp RequestService
  15. 15Create QR Login URLCodeLogic
  16. 16Fetch QR Code ImageHttp RequestService
  17. 17Prepare Email AttachmentCodeLogic
  18. 18Send Welcome EmailGmailService

How it's built

Starts on
Someone submitting a form
Steps
18, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets, Postgres
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Postgres accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.