Getting Started with the Zapier Addon

The Zapier addon connects WP User Manager to Zapier, so things that happen on your site can start a Zap in thousands of other apps, and your Zaps can find members and manage their groups.

For example, you can add every new registration to a Google Sheet, post in Slack when a member is approved, or add members to a group when they buy something in another app.

What you need

  • WP User Manager and the Zapier addon, both active.
  • A Zapier account. The free plan covers two-step Zaps; longer ones need a paid Zapier plan.
  • Your site's REST API reachable from the internet. Security plugins that block /wp-json/ for logged-out visitors will stop Zapier connecting.
  • For the approval and email verification triggers, the User Verification addon. For the group triggers and actions, the Groups addon.

Step 1: Create an API key

  1. In your WordPress admin, go to Users > Zapier.
  2. On the API Keys tab, click Generate API Key.
  3. Choose the user the key belongs to, and click Generate API Key.

Zapier acts as that user. Use an administrator for the Find User, Join a Group and Leave Group actions: they need a user who can list and edit other users.

The API Keys tab under Users > Zapier

You'll see the key's Public Key and Secret Key. Treat the secret key like a password.

Step 2: Connect your site in Zapier

While Zapier reviews our listing, WP User Manager doesn't appear in Zapier's app search yet. Open this invite link first, while logged in to Zapier, and accept it to add WP User Manager to your account.

  1. In Zapier, create a Zap and choose WP User Manager as the app.
  2. When Zapier asks you to sign in, enter your Website URL: your site's address as shown under Settings > General > Site Address (URL), including https://. Then the Public Key and Secret Key from step 1.
  3. Click Connect. The connection is named after your site's address.

Triggers

Each trigger starts a Zap when something happens on your site.

  • New Registration: someone registers through a WP User Manager registration form.
  • User Logged In: a member logs in through the WP User Manager login form.
  • Profile Updated: a member saves changes on their account page.
  • Avatar Changed and Avatar Removed: a member uploads or removes their profile photo.
  • Cover Image Changed and Cover Image Removed: a member uploads or removes their cover image.
  • User Approved and User Rejected: an administrator approves or rejects a new member (User Verification addon).
  • Email Verified: a new member verifies their email address (User Verification addon).
  • Member Joined Group and Member Left Group: a member joins or leaves a group, including asking to join a private one (Groups addon).
  • Group Membership Approved and Group Membership Rejected: a request to join a private group is approved or turned down (Groups addon).

When you test a trigger in Zapier, it fetches a sample from your site to map in the next steps. For the member triggers that's your most recent member; for the group triggers it's an example.

Actions

  • Find User: finds a member by email address, and gives you their user ID, email, first name and last name.
  • Join a Group: adds a member to a group. In a private group they wait for approval (Groups addon).
  • Leave Group: removes a member from a group (Groups addon).

The group actions need the member's user ID. Map it from a trigger, or add a Find User step before them.

How it works on your site

When you turn a Zap on, Zapier adds a webhook to your site for its trigger, and turning the Zap off removes it again. You can see them on the Webhooks tab under Users > Zapier.

The Webhooks tab under Users > Zapier

Revoking an API key, or deleting the user it belongs to, removes all of that key's webhooks, so its Zaps stop straight away.

Sending to other services

You can also add webhooks by hand on the Webhooks tab, for example to a Zapier "Catch Hook". By default, webhooks can only be sent to hooks.zapier.com. To send to another service, such as Make or n8n, allow its host with the wpumza_allowed_webhook_hosts filter:

add_filter( 'wpumza_allowed_webhook_hosts', function ( $hosts ) {
	$hosts[] = 'hook.eu1.make.com';
	return $hosts;
} );

Troubleshooting

  • Zapier can't connect: check the Website URL matches your Site Address (URL), including https://, and that a security plugin isn't blocking /wp-json/wpumza-api/v1/.
  • A Zap doesn't fire: check its webhook is listed and Active on the Webhooks tab. If it's missing, turn the Zap off and on again in Zapier.
  • The group actions say the user is not allowed: the API key belongs to a user who can't edit other users. Generate a key for an administrator and reconnect.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.