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
| Field | Type | Description |
|---|---|---|
| string | User email address | |
| Username | string | Login username |
Optional Fields
| Field | Type | Default | Description |
|---|---|---|---|
| Password | string | Auto-generated | User password |
| Role | select | subscriber | User role |
| First Name | string | - | First name |
| Last Name | string | - | Last name |
| Display Name | string | Username | Public display name |
| Website | string | - | User website URL |
| Bio | string | - | Biographical info |
| Send Notification | boolean | true | Send 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:
| Role | Description |
|---|---|
administrator | Full access |
editor | Can publish/manage posts |
author | Can publish own posts |
contributor | Can write, not publish |
subscriber | Can only read |
customer | WooCommerce 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
| Variable | Type | Description |
|---|---|---|
{{Action.user_id}} | integer | Created user ID |
{{Action.username}} | string | Assigned username |
{{Action.password}} | string | Generated 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