Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Loading Users Inconsistent Across Environments

14 views
Skip to first unread message

Alem Embiale

unread,
Mar 8, 2025, 12:43:01 PMMar 8
to Keycloak Dev

Scenario:

  • Keycloak Version: 26.0.7
  • Role: Impersonated a user that has a realm-management view users role
  • Navigation Path: admin/{realm}/console/#/{realm}/users

Problem: We are experiencing inconsistent results when viewing users in Keycloak with impersonated user accounts. 

The local instance and the OpenShift environments, despite pointing to the same database and being identical versions, yield different outcomes.

Results:

  • Local Environment:

    • Started with infinispan cache enabled (./kc.sh start-dev --debug --cache=ispn)
    • Impersonate a user  that has a realm-management view users role
    • Navigate to admin/{realm}/console/#/{realm}/users
    • Users load successfully.
    • The getUserById(RealmModel realm, String id) method in UserCacheSession.java is called 11 times without errors in the logs.
  • OpenShift Environment (Remote Debugging):

    • Impersonate a user  that has a realm-management view users role
    • Navigate to admin/{realm}/console/#/{realm}/users
    • Users do not load
    • The getUserById(RealmModel realm, String id) method is called a few times with noticeable delays.
    • An error message "No users found" appears, accompanied by a 504 Gateway Time-out error in the network logs.

I really appreciate your help with this.

Thank you!
Alem.
  • Ps: It works in version 23 (a little slow though)

Jon Koops

unread,
Mar 10, 2025, 8:17:45 AMMar 10
to Alem Embiale, Keycloak Dev
Please use the user mailing list for these kinds of questions, the dev mailing list is reserved exclusively for discussion around the development of Keycloak itself.

--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/keycloak-dev/fc82ddb8-8505-47c6-b19e-b1dff2f7b1ddn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages