8000 missing `populateHierarchy` in `GroupsResource.search()` · Issue #237 · keycloak/keycloak-client · GitHub
[go: up one dir, main page]

Skip to content

missing populateHierarchy in GroupsResource.search() #237

Open

Description

@wskr00

Describe the bug

i need to set populateHierarchy to false but i cant

@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

@GET
@Produces(MediaType.APPLICATION_JSON)
List<GroupRepresentation> query(@QueryParam("q") String sear 62F5 chQuery,
@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

Activity

  1. nihalritgithub commented on Oct 11, 2026

    @nihalritgithub

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0