Repository navigation
Open
Description
Describe the bug
i need to set populateHierarchy to false but i cant
keycloak-client/admin-client/src/main/java/org/keycloak/admin/client/resource/GroupsResource.java
Lines 106 to 114 in bb57a72
| @GET | |
| @Produces(MediaType.APPLICATION_JSON) | |
| @Consumes(MediaType.APPLICATION_JSON) | |
| List<GroupRepresentation> groups(@QueryParam("search") String search, | |
| @QueryParam("exact") Boolean exact, | |
| @QueryParam("first") Integer first, | |
| @QueryParam("max") Integer max, | |
| @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation, | |
| @QueryParam("subGroupsCount") @DefaultValue("true") Boolean subGroupsCount); |
GroupsResource.query() has populateHierarchy, but doesnt have search
keycloak-client/admin-client/src/main/java/org/keycloak/admin/client/resource/GroupsResource.java
Lines 190 to 194 in bb57a72
| @GET | |
| @Produces(MediaType.APPLICATION_JSON) | |
| List<GroupRepresentation> query(@QueryParam("q") String searchQuery, | 62D8|
| @QueryParam("populateHierarchy") boolean populateHierarchy, @QueryParam("first") Integer first, | |
| @QueryParam("max") Integer max, @QueryParam("briefRepresentation") boolean briefRepresentation); |
Version
26.0.12
Expected behavior
use search and populateHierarchy together
Actual behavior
use groupsResource.search() with search but without populateHierarchy, or use groupsResource.query() with populateHierarchy but without search
How to Reproduce?
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
No fields configured for issues without a type.
Activity
nihalritgithub commentedon Oct 11, 2026
Hi, I'd like to contribute a fix for this issue.
I understand that GroupsResource.search() currently doesn't support the populateHierarchy parameter.
Since the admin-client sources appear to be synchronized from the main Keycloak repository, could you please confirm where the fix should be submitted?
I'd be happy to implement the change and add regression tests.
Thanks!