Create User

Automatically create WordPress user accounts.

Overview

The Create User action creates a new WordPress user account. This is useful for automated user provisioning, membership systems, and integration with external systems.

Configuration

Required Fields

FieldTypeDescription
EmailstringUser email address
UsernamestringLogin username

Optional Fields

FieldTypeDefaultDescription
PasswordstringAuto-generatedUser password
RoleselectsubscriberUser role
First Namestring-First name
Last Namestring-Last name
Display NamestringUsernamePublic display name
Websitestring-User website URL
Biostring-Biographical info
Send NotificationbooleantrueSend welcome email

Using Variables

Email: {{Trigger.fields.email}}
Username: {{Trigger.fields.username}}
First Name: {{Trigger.fields.first_name}}
Last Name: {{Trigger.fields.last_name}}
Role: customer

Auto-Generated Usernames

If no username is provided, generate from email:

Email: {{Trigger.fields.email}}
Username: {{Trigger.fields.email | before:"@"}}

Roles

Standard WordPress roles:

RoleDescription
administratorFull access
editorCan publish/manage posts
authorCan publish own posts
contributorCan write, not publish
subscriberCan only read
customerWooCommerce customer

Example Configurations

From Form Submission

Email: {{Trigger.fields.email}}
Username: {{Trigger.fields.username}}
Password: {{Trigger.fields.password}}
First Name: {{Trigger.fields.first_name}}
Last Name: {{Trigger.fields.last_name}}
Role: subscriber
Send Notification: true

Import from CRM

Email: {{Trigger.crm_email}}
Username: {{Trigger.crm_username}}
First Name: {{Trigger.crm_first_name}}
Last Name: {{Trigger.crm_last_name}}
Role: customer
Send Notification: false

Membership Signup

Email: {{Trigger.billing.email}}
Username: {{Trigger.billing.email}}
First Name: {{Trigger.billing.first_name}}
Last Name: {{Trigger.billing.last_name}}
Role: premium_member

Output Data

VariableTypeDescription
{{Action.user_id}}integerCreated user ID
{{Action.username}}stringAssigned username
{{Action.password}}stringGenerated password (if auto)

Error Handling

The action will fail if:

  • Email already exists
  • Username already taken
  • Invalid email format
  • Invalid role specified

Use conditions to check for existing users before creating.

Best Practices

  • Validate email format before creation
  • Check for existing users to avoid duplicates
  • Use appropriate roles for security
  • Consider GDPR consent for notifications

Security Considerations

  • Never store passwords in plain text
  • Use strong auto-generated passwords
  • Assign minimum necessary role
  • Review user creation logs