Want to Update The User Details thorugh my app and also call an external service after update is triggered

I Want to update the user details.
What I implemented was that I used the KeyCloak’s Admin Rest APIs to update the user details but the drawback of that is that UPDATE_PROFILE event is not being triggered.
Can someone suggest how to tackle this or is there any other way of doing it?

It was resolved. I saw the updateUser method of UserResource and found out that there is an admin event triggered. OperationType.UPDATE.

And in my EventListener, I used the admin onEvent method to catch the event and perform the business logic.