Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-4112

User admin events don't show role, group mapping, reset password like events [GHI#45333]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      admin/ui

      Describe the bug

      The events tab for a user in the admin console shows user and admin events related to the user.
      But the admin events only show events exactly matching the resource path "users/userid". They don't show events like group membership, role mapping, reset password.

      Version

      26.5

      Regression

      [ ] The issue is a regression

      Expected behavior

      I would expect that all user related admin events are shown in the admin events tab for a single user

      Actual behavior

      Only user create/update events are displayed

      How to Reproduce?

      • Enabled admin events
      • Create a user
      • Assign a role/group or set password for the user
      • Check admin events for the user via the user details -> only the create event is displayed

      Anything else?

      I assume the issue is here:
      https://github.com/keycloak/keycloak/blob/main/js/apps/admin-ui/src/user/EditUser.tsx#L453

      <AdminEvents resourcePath={`users/${user.id}`} />
      

      and I assume a fix is as easy as adding a *

      <AdminEvents resourcePath={`users/${user.id}*`} />
      

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core (shared)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: