From ffdb7509c25b1e8d2665683242e6a992d9e7f96b Mon Sep 17 00:00:00 2001 From: Akos Hencz Date: Tue, 30 Jul 2019 17:23:26 +0200 Subject: [PATCH] Paginate get_groups --- 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 33742dd..d07b76b 100644 --- a/keycloak/keycloak_admin.py +++ b/keycloak/keycloak_admin.py @@ -419,8 +419,7 @@ class KeycloakAdmin: :return: array GroupRepresentation """ params_path = {"realm-name": self.realm_name} - data_raw = self.connection.raw_get(URL_ADMIN_GROUPS.format(**params_path)) - return raise_error_from_response(data_raw, KeycloakGetError) + return self.__fetch_all(URL_ADMIN_GROUPS.format(**params_path)) def get_group(self, group_id): """