From 2225a1283d205fc4a9f250f52ee9d1d41f0a1ea1 Mon Sep 17 00:00:00 2001 From: Akos Hencz Date: Tue, 30 Jul 2019 17:23:08 +0200 Subject: [PATCH] Paginate get_users --- 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 300554f..33742dd 100644 --- a/keycloak/keycloak_admin.py +++ b/keycloak/keycloak_admin.py @@ -199,8 +199,7 @@ class KeycloakAdmin: :return: users list """ params_path = {"realm-name": self.realm_name} - data_raw = self.connection.raw_get(URL_ADMIN_USERS.format(**params_path), **query) - return raise_error_from_response(data_raw, KeycloakGetError) + return self.__fetch_all(URL_ADMIN_USERS.format(**params_path), query) def get_idps(self): """