When I rename "user name" and "email" and event "Remove user's application membership success " is sent

Hi, hope you are having a good day :slight_smile:

I am facing an issue while working with event hooks on okta.
When I rename “user name” and “email” I was expecting to receive one or two event hooks for “Updated user application property” but I receive and the events “Remove user’s application membership success” and “Add user to application membership”. Is that the expected behaviour? Is there a way of not triggering the event “Remove user’s application membership success” when the user is updated?

Steps to reproduce

  1. I visit Sign In
  2. I click on my app
  3. I click on the tab assignments
  4. I click on Edit button
  5. I change the values “User Name” and “Email” to “admin_new_name@example.com
  6. I visit Sign In
    The strange behaviour is
  7. I see 2 events: the first is “Remove user’s application membership”, the second is “Add user to application membership”

note: this is relevant for us because we have hooks configured to do something when the event “Remove user’s application membership” is trigered via an EventHook.

Thanks :slight_smile:

That’s likely because the application username is set to be the user’s username in Okta,and the username is being used as the unique ID for the users account on the SP side, so its treated as a new user and they have to be removed and pushed again

As developers we would like to prevent customers from triggering “Remove user’s application membership” while they are just updating a user, is there a way for that?

Hi @andrea , just checking if you have any news about this :slight_smile: