From b1db8756ff2df598d08004e075628ff7ff11797f Mon Sep 17 00:00:00 2001 From: Steve Hawkins Date: Wed, 5 Aug 2026 08:49:08 -0400 Subject: [PATCH] fix: correcting the query param name closes: #51449 Signed-off-by: Steve Hawkins --- .../services/resources/admin/RoleContainerResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/keycloak/services/resources/admin/RoleContainerResource.java b/services/src/main/java/org/keycloak/services/resources/admin/RoleContainerResource.java index b43e698c56f0..764ba78e102d 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/RoleContainerResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/RoleContainerResource.java @@ -640,7 +640,7 @@ public Stream getUsersInRole(final @Parameter(description = }) public Stream getGroupsInRole(final @Parameter(description = "the role name.") @PathParam("role-name") String roleName, @Parameter(description = "First result to return. Ignored if negative or {@code null}.") @QueryParam("first") Integer firstResult, - @Parameter(description = "Maximum number of results to return. Unbounded if negative.") @QueryParam(Constants.DEFAULT_MAX_RESULTS_STR) Integer maxResults, + @Parameter(description = "Maximum number of results to return. Unbounded if negative.") @QueryParam("max") @DefaultValue(Constants.DEFAULT_MAX_RESULTS_STR) Integer maxResults, @Parameter(description = "If false, return a full representation of the {@code GroupRepresentation} objects.") @QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation) { auth.roles().requireView(roleContainer);