# Problems with the new-user webhook

**URL:** https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133
**Category:** Bug
**Created:** [March 15, 2017, 3:54am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133 "2017-03-15T03:54:06Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [March 15, 2017, 3:54am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/1 "2017-03-15T03:54:06Z")

</div>

Continuing the discussion from [Discourse Webhooks and Zapier](https://meta.discourse.org/t/discourse-webhooks-and-zapier/56753):

I want to get notified for every new user which is created in our forum.

The setup is below, and my forum is configured as follows:

- The public can view a few categories
- Group membership is required to read most of the rest.
- the public can sign up, and validate themselves as a new user without any human interaction.
- There is an SSO signup button which uses our main SaaS app for SAML authentication, and it will automagically apply the Group membership we wanted.

When I setup the webhook with just “User Event”, no ping was sent.

When “Post Event” was checked, I did get a webhook with data about the new user (recipient) and the sender of the welcome email.

How else can I troubleshoot new user creation’s webhook sending?

 ![](https://global.discourse-cdn.com/meta/original/3X/e/8/e82b0ffc504e92c9617df633f7a1f16e8e73ebe0.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 15, 2017, 4:41am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/2 "2017-03-15T04:41:53Z")

</div>

Any ideas here for troubleshooting @tgxworld?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [March 15, 2017, 10:13am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/3 "2017-03-15T10:13:50Z")

</div>

> [@watchmanmonitor](#):
>
> When I setup the webhook with just “User Event”, no ping was sent.

Can I clarify if you tested the “ping” action or do you mean that user events are never sent?

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [March 15, 2017, 10:24am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/4 "2017-03-15T10:24:23Z")

</div>

I have had an issue before where as new user events are not sent but edited user events are. As per here

> [@Webhooks feedback](https://meta.discourse.org/t/webhooks-feedback/49046/30):
>
> I realised I probably posted on the wrong post before - on the user creation / update is it possibly to get the email address added into the payload? As was surprised to see this is missing. Also I have noticed that it only seems to be sending out users that have updated their profile rather than new ones registered. For example I sent an invite to an email, registered via the invite of which auto approves the user but is not showing up in the list having been sent only the ones that I have u…

Have not revisited it since

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [March 15, 2017, 2:21pm UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/5 "2017-03-15T14:21:38Z")

</div>

Correct.. I should have said “no webhook was sent”

I can use the ping feature, and zapier sees the ping just fine. I did see an event sent for the welcome message.

I didn’t see a new user webhook on either of the new users I tried.

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [March 15, 2017, 4:28pm UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/6 "2017-03-15T16:28:28Z")

</div>

I guess there’s a bug here:

- A user self registering did **not** send a webhook.

- There was no Approval needed in this forum. I think it should be tested to fire with & without an approval step.

- Suspending & re-activating the user did **not** send a webhook.

- Editing the user’s title **did** generate a webhook, and Zapier handled it well. 🎆

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 16, 2017, 12:19am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/7 "2017-03-16T00:19:20Z")

</div>

> [@watchmanmonitor](#):
>
> A user self registering did not send a webhook.

Are you sure this isn’t because of your SSO?

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [March 16, 2017, 12:22am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/8 "2017-03-16T00:22:39Z")

</div>

The user I tested with signed up with a username & password. I don’t think think so.

We’re using a SAML Login button from

[https://github.com/discourse/discourse-saml/](https://github.com/discourse/discourse-saml/)

we don’t use traditional SSO

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 16, 2017, 12:24am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/9 "2017-03-16T00:24:39Z")

</div>

I feel like this is a bug @tgxworld – why would the new user webhook not fire?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [March 16, 2017, 6:47am UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/10 "2017-03-16T06:47:10Z")

</div>

Thanks for reporting @watchmanmonitor 🙂 Fixed in

[https://github.com/discourse/discourse/commit/bf78c228f439097aaea05ddc29e3f3dfeaa2cd3f](https://github.com/discourse/discourse/commit/bf78c228f439097aaea05ddc29e3f3dfeaa2cd3f)

Do upgrade to latest and let me know if this fixes it for you 🙂

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [March 16, 2017, 1:19pm UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/12 "2017-03-16T13:19:43Z")

</div>

updated my test environment and built some new webhooks into zapier and seems to work well thank you for that!

As i believe it was something that fantasticfears was working on as part of the original webhooks pull request that was open - is it possible to get the email address included as part of the payload.

Thanks,  
Mike.

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [March 16, 2017, 1:49pm UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/13 "2017-03-16T13:49:04Z")

</div>

Confirmed, I updated to latest this morning, and about 20 minutes later, had a new user register. The webhook fired & my zap worked great.

EDIT moved the feature request to a new thread

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [March 16, 2017, 3:55pm UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/14 "2017-03-16T15:55:57Z")

</div>

I just tested with the SAML plugin, and with a normal user/pass account.

The best part here is that the webhook is sent at user registration, even before they confirm their address (or forget to..)

Now I can proactively track down people who try to get in, but never finish.

Thanks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 16, 2017, 6:12pm UTC](https://meta.discourse.org/t/problems-with-the-new-user-webhook/59133/15 "2017-03-16T18:12:22Z")

</div>


