Create User
wordpress.create_user
ActionBusiness appsconnection required
Calls the WordPress API with the connection's credentials.
Create a user account. WordPress requires a username, an email address and a password, and the connection user must be an administrator.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Username & password
- Providers
- WordPress
- Secret shape
- {"username": "…", "password": "… the application password …"}
- Config it needs
- site_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
11 fields, 3 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 |
|---|---|---|---|---|---|
username Login name for the new user; it cannot be changed later. | string | Yes | — | — | — |
email Email address for the new user; it must be unique on the site. | string | Yes | — | email format | — |
password Initial password for the new user. Supply it from an expression rather than typing a literal into the workflow. | string | Yes | — | credential material | credential |
name Display name shown on the site. | string | No | — | — | — |
first_name Given name of the user. | string | No | — | — | — |
last_name Family name of the user. | string | No | — | — | — |
nickname Nickname stored on the profile. | string | No | — | — | — |
slug URL slug for the author archive. | string | No | — | — | — |
url Website URL shown on the profile. | string | No | — | — | — |
description Biographical text shown on the profile. | string | No | — | — | — |
roles Role slugs to grant, as a JSON array or comma-separated list (subscriber, contributor, author, editor, administrator). | array | No | — | array of string | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id WordPress id of the user. | number | — |
name Display name of the user. | string | — |
slug URL slug for the author archive. | string | — |
link Public author archive URL. | string | — |
roles Role slugs; only present when the response context is 'edit'. | array | — |
email Email address; only present when the context is 'edit'. | string | — |
{
"email": "",
"id": 0,
"link": "",
"name": "",
"roles": [],
"slug": ""
}Notes
- POST /wp/v2/users. The password is never returned by WordPress and is not echoed in this node's output.
See Create User run in a workflow.
In a technical demo we add the WordPress connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.