Performance degradation when assigned role user if roles in realm >10000 in admin UI #40928
yvladimirov
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. We used keycloak and we have 10_000 roles in realm.
If I assigned role in admin UI for user and choice filter by real roles and UI very slow.
UI call next API
https://keycloak.host/admin/realms/{realmId}/users/{userId}/role-mappings/realm/available?first=0&max=101
But pagination is not work and response return all roles in realm.
Because API not used pagination parameters
keycloak/services/src/main/java/org/keycloak/services/resources/admin/RoleMapperResource.java
Line 234 in f8f561a
Can the following changes be made?
realm.getRolesStream()
->realm.getRolesStream(firstResult, maxResults)
Beta Was this translation helpful? Give feedback.
All reactions