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.

FieldTypeRequiredDefaultConstraintsExample
username
Login name for the new user; it cannot be changed later.
stringYes———
email
Email address for the new user; it must be unique on the site.
stringYes—email format—
password
Initial password for the new user. Supply it from an expression rather than typing a literal into the workflow.
stringYes—credential materialcredential
name
Display name shown on the site.
stringNo———
first_name
Given name of the user.
stringNo———
last_name
Family name of the user.
stringNo———
nickname
Nickname stored on the profile.
stringNo———
slug
URL slug for the author archive.
stringNo———
url
Website URL shown on the profile.
stringNo———
description
Biographical text shown on the profile.
stringNo———
roles
Role slugs to grant, as a JSON array or comma-separated list (subscriber, contributor, author, editor, administrator).
arrayNo—array of string—

Output

One shape.

result

FieldTypeExample
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.