Looking for the User Management SPI

Hi everyone,

I’m looking into the options of extending the server to have my keycloak instance send a rest call to our backend in case a user is deleted to clean up remaining resources.
Can someone tell me in which SPI i would find the deleteUser method so i can override/extend it?

Thanks and best regards

The Event SPI is your friend.
As deletion of users is an admin activity, there will be an admin-event for this:

Upon this event, you can do whatever you want in your custom event listener.

1 Like

Great, thank you very much!

Best regard