# Best way to receive user added and user deleted events

**URL:** <https://community.auth0.com/t/best-way-to-receive-user-added-and-user-deleted-events/185856>\
**Category:** Get Help\
**Tags:** hooks-management-api, management-api\
**Created:** [April 23, 2025, 4:30pm UTC](https://community.auth0.com/t/best-way-to-receive-user-added-and-user-deleted-events/185856 "2025-04-23T16:30:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dashabobrova](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dashabobrova/32/62956_2.png) [@dashabobrova](https://community.auth0.com/u/dashabobrova)\
**Post date:** [April 23, 2025, 4:30pm UTC](https://community.auth0.com/t/best-way-to-receive-user-added-and-user-deleted-events/185856/1 "2025-04-23T16:30:16Z")

</div>

Hello! I’d like my application to be notified when a user is created/added to an organization (either by accepting an invitation and manually being added via the Auth0 UI) and when a user is deleted from an organization.

I see that events is in Beta and hooks are deprecated. What is the current best way to set this up. Thank you!

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [April 23, 2025, 7:00pm UTC](https://community.auth0.com/t/best-way-to-receive-user-added-and-user-deleted-events/185856/3 "2025-04-23T19:00:37Z")

</div>

Hi @dashabobrova

Welcome to the Auth0 Community!

Reading and understanding your current use-case, I believe that currently we do not have an out-of-the-box solution that could easily accomplish this, but you will need to utilize different tools in order to accomplish the goal.

One way that I would recommend approaching this would be utilizing Auth0 Log Streams to search for newly added users and the [Management API](https://auth0.com/docs/api/management/v2) to retrieve the current list of Organization members, which can tell if there are users who were recently deleted from the Org.

You can [Create Custom Log Streams Using Webhooks](https://auth0.com/docs/customize/log-streams/custom-log-streams) and filter the [Log Stream](https://auth0.com/docs/deploy-monitor/logs/log-event-type-codes) by `organization_member_added` which would show the new users added to the Organization.  
With regards to members Deleted from an Organization, you can use the [Management API](https://auth0.com/docs/api/management/v2/organizations/get-members) to call the `api/v2/organizations/:id/members` endpoint to retrieve a list of Organization members and compare it with a list of users that could be locally stored in your application.

In addition, you can also use [Retrieve User’s Organization Memberships](https://auth0.com/docs/manage-users/organizations/configure-organizations/retrieve-user-membership) to check a user’s current Organization membership.

Hope this helped!  
Gerald

---

<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 7, 2025, 7:01pm UTC](https://community.auth0.com/t/best-way-to-receive-user-added-and-user-deleted-events/185856/4 "2025-05-07T19:01:06Z")

</div>

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