From e2cf481f5e7b5af20ee5a683d79b44bbc405f2f8 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Wed, 1 May 2024 14:01:41 -0500 Subject: [PATCH] Add max paramter to membership list By default, keycloak has: Query param max: Maximum results size (defaults to 100) --- util/keycloak_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/keycloak_client.py b/util/keycloak_client.py index 90165c3e..b5223810 100644 --- a/util/keycloak_client.py +++ b/util/keycloak_client.py @@ -152,7 +152,7 @@ def get_project_members(self, charge_code): url=keycloakproject._client.get_full_url( keycloakproject.get_path("collection", realm=self.realm_name) ) - + "/{id}/members".format(id=group["id"]), + + "/{id}/members?max=9999".format(id=group["id"]), ) return [m["username"] for m in members]