Update A User’s Role With WP Zapier Integration

WP Zapier Integration

Updating a WordPress user has never been easier thanks to WP Zapier! In this short guide, we will cover the easy steps to take to simply update a user’s role in your WordPress site when passing data from Zapier. If you aren’t familiar with setting up WP Zapier Integration to receive data to create or update a user, follow this guide.

Changing A WordPress User’s Role With Zapier (Steps):

  1. Once you have setup your Zap and ready to pass information through to WordPress
  2. Inside the “Data (optional)” section, this is where you pass information through to Zapier or to WordPress depending on your Zap.
  3. To update a WordPress user you simply need to pass in the two required parameters:
    1. action – update_user.
    2. email – the user’s email you would like to update.
  4. In the image below, we are wanting to change all user’s that run through this Zap to “Editor”, be sure to set this to the role’s stored name (i.e. My Custom Role may be saved as ‘my_custom_role’).
  5. That’s it, it’s that simple.
Example of how to change user role with Zapier.

Some Things To Remember

  • You won’t be able to adjust Admin accounts through update_user action. WP Zapier does not allow this by default to prevent mistakes from happening.
  • This will update the user role and not add in an additional user role to the user.
  • This will update the user every time the zap is run and their data is passed through.
  • The two main required fields for update_user action is the action itself and the user’s email. (You may also reference via username).

If you have any further questions about this guide, please feel free to reach out to our support team.