UPDATE_PROFILE event occur without Details information

Hello everyone,

I’m implementing a calling 3rd party service base on Keycloak event extension.
Here is the issue and i’m not sure how to fix it.

  • Goto account client of any realm.
  • Login with your user name and password.
  • Update First Name or Last Name.
  • UPDATE_PROFILE event is fired in the console

Expected: UPDATE_PROFILE should include detailsJson or UserRepresentation to tell you First Name or Last Name had changed from which to which.

Actual: UPDATE_PROFILE doesn’t have any information about FirstName and LastName changes.

Notes:

  • If you update email then EMAIL_UPDATED event is fired with all necessary information.
  • If Admin actively update user’s information then you have all necessary information.
  • All configurations for Events is configured properly.

Thanks,
Tuan Do

1 Like

hello anyone have an idea about this?

I am also sailing in the same boat. Looks like UPDATE_PROFILE event triggers as soon as the update profile action takes place and not after the profile is updated.

As a workaround, I am fetching the user details from KC server unless I get the First name and last name which should usually happen in the next API call. Make sure it does not go into the Infinite loop. I am making an API call to KC 2 times only.

Let me know if anyone has a better solution.