From 147646e56f244234fa32408b9beb7aeeba7fe4a1 Mon Sep 17 00:00:00 2001 From: Akos Hencz Date: Wed, 31 Jul 2019 10:05:17 +0200 Subject: [PATCH] Paginate get_group_members --- keycloak/keycloak_admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/keycloak/keycloak_admin.py b/keycloak/keycloak_admin.py index d07b76b..d9b76d2 100644 --- a/keycloak/keycloak_admin.py +++ b/keycloak/keycloak_admin.py @@ -465,8 +465,7 @@ class KeycloakAdmin: :return: Keycloak server response (UserRepresentation) """ params_path = {"realm-name": self.realm_name, "id": group_id} - data_raw = self.connection.raw_get(URL_ADMIN_GROUP_MEMBERS.format(**params_path), **query) - return raise_error_from_response(data_raw, KeycloakGetError) + return self.__fetch_all(URL_ADMIN_GROUP_MEMBERS.format(**params_path), query) def get_group_by_path(self, path, search_in_subgroups=False): """