Role Removal Event Displays Old Role Name After Role Rename

What problem are you observing?

In the Role Removal event history for a user, I am seeing the old role name being passed. Even after the role has been renamed, the event page still displays the previous role name.

Because of this, we are unable to correlate the event with the current role, which makes it difficult to identify the role that was actually removed.

What is the correct behavior?

New/Current role name should be displayed

What product feature is this related to?

Roles

What are the steps to reproduce the issue?

  1. Create a role named Role_A.
  2. Assign Role_A to a test user.
  3. Remove Role_A from the user and verify a Role Removal event is generated.
  4. Rename the role from Role_A to Role_B.
  5. Assign the renamed role (Role_B) to the same user.
  6. Remove the role from the user again.
  7. Navigate to the user’s Events or Role Removal Event History page.
  8. Review the role name displayed in the Role Removal events.

Do you have any other information about your environment that may help?

I believe this common across all the tenants

I’ve experienced the same issue multiple times. Whenever I renamed a role, I observed that the old role name continued to appear in the Role Removal event history. Because of this, I stopped renaming roles and instead recreated them each time as a workaround. It appears to be a consistent issue rather than an isolated case.