# Is there hook/trigger for post-user update?

**URL:** <https://community.auth0.com/t/is-there-hook-trigger-for-post-user-update/62506>\
**Category:** Get Help\
**Created:** [May 10, 2021, 12:12pm UTC](https://community.auth0.com/t/is-there-hook-trigger-for-post-user-update/62506 "2021-05-10T12:12:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lai.ying.hui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lai.ying.hui/32/20443_2.png) [@lai.ying.hui](https://community.auth0.com/u/lai.ying.hui)\
**Post date:** [May 10, 2021, 12:12pm UTC](https://community.auth0.com/t/is-there-hook-trigger-for-post-user-update/62506/1 "2021-05-10T12:12:40Z")

</div>

Hi everyone, I have an enterprise connection and would like to trigger an action whenever the user’s metadata is updated (for example, user updated email in the upstream identity service provider’s side and the email in Auth0’s side is automatically updated when user login). I had taken a look around the documentation but seems like there is none, so I posted a question here just to be sure.

The solution I can think of is to store the original metadata as app metadata, so a comparison of the latest metadata with the original metadata can be done through Rules every time the user logins. I’d be appreciate if there is a better solution than this 😄

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 10, 2021, 12:45pm UTC](https://community.auth0.com/t/is-there-hook-trigger-for-post-user-update/62506/3 "2021-05-10T12:45:12Z")

</div>

Hi @lai.ying.hui,

Thanks for joining the Community!

You are correct that there is not currently a hook for when a user’s app\_metadata is updated.

I believe your solution sounds good! Rules run after authentication, so as long as the user metadata does not need to be known to the enterprise connection beforehand, then keeping a user metadata changelog in the app\_metadata should work.

---

<div class="post-metadata">

**Author:** ![lai.ying.hui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lai.ying.hui/32/20443_2.png) [@lai.ying.hui](https://community.auth0.com/u/lai.ying.hui)\
**Post date:** [May 11, 2021, 1:32am UTC](https://community.auth0.com/t/is-there-hook-trigger-for-post-user-update/62506/4 "2021-05-11T01:32:20Z")

</div>

Hi @stephanie.chamblee ,

I see, thank you for confirming it!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 26, 2021, 1:32am UTC](https://community.auth0.com/t/is-there-hook-trigger-for-post-user-update/62506/5 "2021-05-26T01:32:50Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
