WordPress Automations
Add a User Role Automatically When Someone Registers in WordPress
Need every new registrant to get a specific role — Subscriber, Contributor, or a custom one — without assigning it by hand? Zapify does it automatically: when a user registers, it adds the role you choose. This guide builds the automation using the free A user registers trigger and the free Add a role to a user action, with no code.
What is this automation?
A Zapify automation follows one rule: when this happens, do this. Here the trigger is A user registers (WordPress) and the action is Add a role to a user (WordPress). Every time someone creates an account, Zapify gives the new user the role you selected — keeping their existing roles by default.
Both the trigger and the action are free. You need Zapify installed and activated, user registration enabled, and the role you want to assign already present on your site.
How to build the role-assignment automation
Step 1: Create a new automation
- In your WordPress dashboard, open Zapify → Automations.
- Click Add New to open the Builder.
- Name it clearly, such as Assign Role to New Users.


Step 2: Add the "A user registers" trigger
- In the Builder, pick the trigger and choose the WordPress integration.
- Select A user registers.
This trigger fires whenever a new account is created, no matter how. Zapify reads the new user last, so their details are complete when the action runs.



Step 3: Add the "Add a role to a user" action
- Below the trigger, add an action and choose the WordPress integration.
- Select Add a role to a user.



Step 4: Leave the User field empty to target the new user
The action's User field decides who gets the role. Its description reads "Leave empty to use the user this automation is running for." Because the A user registers trigger starts this run, leaving User empty applies the role to the person who just registered — which is what you want.
You only fill in User (with an ID, an email, or a token) when you want to act on a different user.

Step 5: Choose the role
Select the role from the Role field. It lists the roles that actually exist on your site, so pick, for example, Subscriber — or any custom role you've created.

Step 6: Decide whether to replace existing roles
The Replace existing roles checkbox controls how the role is applied:
| Setting | Result |
|---|---|
| Off (default) | The selected role is added; the user keeps any roles they already have. |
| On | The selected role replaces every role the user currently has. |
For a new-user automation, leave it Off — a brand-new registrant has no other roles to preserve, and leaving it off keeps the automation safe if you reuse it elsewhere.

Step 7: Set each step Live and save
- Set the A user registers trigger to Live.
- Set the Add a role to a user action to Live.
- Click Save.
Each step has its own Live / Off / Draft switch. A step on Draft is skipped, so the role is only assigned when both are Live.

Step 8: Test it
Register a test user, then open that user's profile in Users → All Users and check the Role column. The role you chose should be listed. You can also open Zapify → Logs to confirm the run.

Tokens used in this automation
This automation needs no tokens in the core setup — leaving User empty targets the registrant automatically. The A user registers trigger still exposes these tokens if you add further actions:
| Token | Value |
|---|---|
| User ID | The new user's ID. |
| Username | Their login name. |
| User email | Their email address. |
| Display name | Their display name. |
| User role | Their current role. |
| Registration date | When they registered. |
Refining the automation (PRO)
The steps above give every new registrant the same role. If you need to assign different roles based on how or where they signed up, Zapify PRO adds Conditions.
PRO feature
Conditions (deciding which registrations receive the role) are a Zapify PRO feature. Assigning a role to every new user, as described above, is entirely free.
Conclusion
With the free A user registers trigger and Add a role to a user action, Zapify assigns the right role to every new WordPress user automatically. Leave User empty, pick the role, set both steps Live, and save. Next, try the same idea on login — see Add a user role when a user logs in — or send a welcome email in the same automation.
FAQs
Do I have to assign the role to every new user by hand?
No. Once both steps are Live and the automation is saved, Zapify adds the selected role automatically after each registration. Existing users are untouched — the automation only runs when a new user registers.
How does Zapify know which user to give the role to?
Leave the action's User field empty. Its description says "Leave empty to use the user this automation is running for," and because the A user registers trigger starts the run, the empty field resolves to the person who just registered. Fill in User only to target someone else.
What does "Replace existing roles" do?
When off (the default), the selected role is added and the user keeps any roles they already have. When on, the selected role replaces all of the user's current roles. For new registrations, leave it off — it's the safer choice and preserves any roles a membership plugin may have set.
Can I assign a custom role instead of Subscriber?
Yes. The Role field lists every role that exists on your site, so any custom role you've created appears there alongside the standard ones. Select it the same way you'd select Subscriber. If a role isn't listed, create it first (via your membership plugin or a role editor) so Zapify can see it.
Will this change users who already registered?
No. The automation runs only when the A user registers trigger fires — that is, for brand-new registrations. Users who signed up before you set the automation Live are not affected.
How do I confirm the role was added?
Open the user's profile in Users → All Users and check the Role column, or open Zapify → Logs to see the run. The log records the role and the user ID the action acted on, so you can verify it ran even if you can't check the profile immediately.