# Webhook/notification when user's data is changed

**URL:** <https://forum.keycloak.org/t/webhook-notification-when-users-data-is-changed/2323>\
**Category:** Getting advice\
**Created:** [April 23, 2020, 1:59pm UTC](https://forum.keycloak.org/t/webhook-notification-when-users-data-is-changed/2323 "2020-04-23T13:59:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thanhthao10722](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/thanhthao10722/32/1621_2.png) [@thanhthao10722](https://forum.keycloak.org/u/thanhthao10722)\
**Post date:** [April 23, 2020, 1:59pm UTC](https://forum.keycloak.org/t/webhook-notification-when-users-data-is-changed/2323/1 "2020-04-23T13:59:52Z")

</div>

I have already used Keycloak API for my application. But I have problems with syncing data between my application and Keycloak data. For example, when sending UPDATE PASSWORD action, I can not confirm if the user updated or not in my app.  
Is there any webhook or notification for solving this problem? Or I miss some important documentation about it?  
Thanks.

---

<div class="post-metadata">

**Author:** ![zonaut](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/zonaut/32/666_2.png) [@zonaut](https://forum.keycloak.org/u/zonaut)\
**Post date:** [April 24, 2020, 3:42pm UTC](https://forum.keycloak.org/t/webhook-notification-when-users-data-is-changed/2323/2 "2020-04-24T15:42:00Z")

</div>

Hi,

you can write your own event listener SPI and act upon those events. Take a look at [https://github.com/zonaut/keycloak-extensions](https://github.com/zonaut/keycloak-extensions) for an example

---

<div class="post-metadata">

**Author:** ![kostanos](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/kostanos/32/5982_2.png) [@kostanos](https://forum.keycloak.org/u/kostanos)\
**Post date:** [October 14, 2022, 8:05am UTC](https://forum.keycloak.org/t/webhook-notification-when-users-data-is-changed/2323/3 "2022-10-14T08:05:36Z")

</div>

Is there some recommendations how can I debug?  
I created a simple even-listener, and it works locally, but it is silent in DEV server. Trying to find the problem, but no logs regarding even-listeners at all.

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [October 14, 2022, 10:31am UTC](https://forum.keycloak.org/t/webhook-notification-when-users-data-is-changed/2323/4 "2022-10-14T10:31:50Z")

</div>

1. Put some logging in your `EventListenerProvider` and `EventListenerProviderFactory` methods, when the factory is initialized, the provider is created, and when the `onEvent` methods are called.
2. Make sure your listener is installed in the event configuration in the admin UI. Add the `jboss-logging` event listener too, which will output events to the logs.

---

<div class="post-metadata">

**Author:** ![kostanos](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/kostanos/32/5982_2.png) [@kostanos](https://forum.keycloak.org/u/kostanos)\
**Post date:** [October 17, 2022, 1:19pm UTC](https://forum.keycloak.org/t/webhook-notification-when-users-data-is-changed/2323/5 "2022-10-17T13:19:50Z")

</div>

As I mentioned above, my listener is working well in my local environment.  
I found the problem.  
In local environment I’m using a master realm, and it works well. But in DEV and Production servers I’m using a client realm (different one from master).  
If you first time enable an event listener in the client realm, it will not work. First I needed to enable it in the master realm, after in the client, so it works now.

Thank you.
