Create User
nextcloud.create_user
ActionFiles & storageconnection required
Calls the Nextcloud API with the connection's credentials.
Provision a Nextcloud account. Give it a password, or give it an email address and Nextcloud mails the person an invitation to set their own.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Username & password
- Providers
- Nextcloud
- Secret shape
- {"username": "…", "password": "<app password>"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
7 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
user_id The login name for the new account. | string | Yes | — | — | — |
password Initial password. Leave blank to have Nextcloud email an invitation instead, which needs an email address. | string | No | — | credential material | credential |
email The account's email address. | string | No | — | email format | ada@example.com |
display_name The name shown in the UI. | string | No | — | — | — |
groups Group ids to add the account to on creation. | array | No | — | array of string | — |
quota Storage quota, e.g. 5 GB, or 'none' for unlimited. | string | No | — | — | — |
language Interface language code, e.g. en. | string | No | — | — | — |
- At least one of email, password must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"email": "ada@example.com"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
user_id The account that was created. | string | — |
status Nextcloud's OCS status word. | string | ok |
status_code The OCS meta statuscode: 100 on v1, 200 on v2. | number | — |
message The OCS meta message, when the server set one. | string | — |
total_items Total matching items, when the endpoint reports it. | string | — |
items_per_page Page size, when the endpoint reports it. | string | — |
{
"items_per_page": "",
"message": "",
"status": "ok",
"status_code": 0,
"total_items": "",
"user_id": ""
}See Create User run in a workflow.
In a technical demo we add the Nextcloud connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.