WordPress Automations

How to Automatically Add a User Role When Someone Registers in WordPress

When someone creates an account on your WordPress website, you may want to automatically give them a specific role.

For example, you may want every new member to become a Subscriber, every new contributor to receive a Contributor role, or every registered customer to receive another role used by your website.

Instead of assigning the role manually every time someone registers, you can use Zapify to automate it.

With this automation:

When: A new user registers on your WordPress website

Then: Zapify automatically adds a selected role to that user

What can you automate?

You can create an automation like this:

New user registers → Add a role to the user

For example:

A user registers → Add Subscriber role

Once the automation is active, every new user who registers will automatically receive the selected role.


Why use this automation?

Assigning roles manually can become repetitive when your website receives many registrations.

This automation can help you:

  • Automatically assign a role to new members

  • Give new users access to specific parts of your website

  • Organize users based on how they registered

  • Reduce manual work for administrators

  • Make sure new users receive the correct role immediately


Who can use this?

This automation can be useful for:

  • Membership websites

  • Online communities

  • Blogs with user registration

  • Client portals

  • Websites with different types of users

  • Websites where new users need a specific role after registration


Before you start

Make sure:

  • Zapify is installed and activated.

  • User registration is enabled on your WordPress website.

  • The role you want to assign is available on your website.

You do not need to write any code.


Step 1: Create a new automation

Go to the Zapify section in your WordPress dashboard and create a new automation.

Give the automation a name that clearly explains what it does.

For example:

Assign Role to New Users

Create Automation Button

Automation Name

You can use any name that makes the automation easy to identify later.


Step 2: Choose the trigger

The trigger tells Zapify when the automation should start.

Trigger Button

Choose:

Wordpress -> A User registers

Select Wordpress

select "A User Registers"

This trigger runs whenever a new user registers on your WordPress website.

You do not need to manually start the automation.

Once it is active, Zapify waits for new registrations and starts the automation automatically.


Step 3: Add the role action

Next, choose what should happen after the user registers.

Click Add Action.

Action Button

Select:

Wordpress -> Add a role to a user

Select Wordpress as Action

Then select Add a role to a user. Select "Add a Role to User" Action


Step 4: Select the user

The action needs to know which user should receive the role.

Because this automation is triggered by a new registration, select the user provided by the A User registers trigger.

Use the {} token button if required to select the user information from the trigger.

Select User

The important part is that the action should use the newly registered user, rather than a specific user that you enter manually.


Step 5: Choose the role

Next, select the role you want to give the new user.

For example:

Subscriber

or another role available on your website.

The available roles are shown in the Role field.

Select Role

Choose the role that new users should receive after registration.


Step 6: Decide whether to replace existing roles

Zapify also provides an option called:

Replace existing roles

When this option is off, the selected role is added while the user's existing roles are kept.

For a new user registration, you will usually leave this option turned off.

If you enable it, Zapify will replace the user's existing roles with the selected role.

Select "Replace Exesting Role"


Step 7: Save and set the automation live

Once the trigger and action are configured, save the automation.

A newly created automation is initially a Draft.

A Draft automation will not run when someone registers.

Click Set Live at the top to activate it.

"Set Live" Button to activate Automation

Once the automation is live, Zapify will start watching for new user registrations.


Step 8: Test the automation

Create a new user on your WordPress website using a test account.

After the registration:

  1. The user registration triggers Zapify.

  2. Zapify starts the automation.

  3. The Add a role to a user action runs.

  4. The selected role is added to the newly registered user.

You can then open the user's profile in WordPress and check their assigned role.

Test Output (New User Created)

This confirms that the automation is working as expected.


Example automation

Your finished automation should look similar to:

A user registers

Add a role to a user

For example:

A user registers → Add Subscriber role

From now on, Zapify will automatically assign that role whenever a new user registers.


Common questions

Do I need to manually assign the role to every new user?

No.

Once the automation is live, Zapify assigns the selected role automatically after registration.

Can I choose which role new users receive?

Yes.

Select the required role from the Role field in the action configuration.

Will this affect users who are already registered?

No.

The automation runs when the trigger occurs.

In this example, the trigger occurs when a new user registers.

Existing users are not automatically changed by this automation.

What does "Replace existing roles" mean?

When it is disabled, Zapify keeps the user's existing roles and adds the selected role.

When it is enabled, the selected role replaces the user's existing roles.

For a new-user automation, you will normally leave this option disabled.

Can I assign a different role instead of Subscriber?

Yes.

Choose another available role from the Role field.

What happens if the automation is disabled?

Zapify will not run the automation while it is disabled.

You need to set the automation live before new registrations can trigger it.

How can I check whether the role was added?

Open the newly registered user's profile in WordPress and check the Role field.

You can also check Zapify's automation run information if you want to confirm that the automation was executed.

Can I use this with a custom user role?

If the custom role is available to Zapify in the role selection field, you can select it just like the other available roles.


A simple example

Imagine you run a membership website.

You want every person who creates an account to become a Subscriber automatically.

Without Zapify:

Visitor registers → Administrator manually assigns Subscriber role

With Zapify:

Visitor registers → Zapify → Subscriber role is added automatically

This removes the manual step and ensures new users receive the intended role immediately.


Summary

Zapify can automatically assign a WordPress role whenever a new user registers.

The automation is simple:

Trigger: A user registers

Action: Add a role to a user

Once the automation is set live, Zapify handles the role assignment automatically for new registrations.

Was this page helpful?

Previous
How to Send a Welcome Email When a New User Registers in WordPress