From cb55943ea9844002dfc414f4e95646a0db3c584e Mon Sep 17 00:00:00 2001 From: Samiul Sk Date: Thu, 21 Mar 2024 23:51:29 +0530 Subject: [PATCH] fix: get_groups pagination call was not used #537 --- src/keycloak/keycloak_admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keycloak/keycloak_admin.py b/src/keycloak/keycloak_admin.py index fa87463..8073cad 100644 --- a/src/keycloak/keycloak_admin.py +++ b/src/keycloak/keycloak_admin.py @@ -1287,7 +1287,8 @@ class KeycloakAdmin: if "first" in query or "max" in query: groups = self.__fetch_paginated(url, query) - groups = self.__fetch_all(url, query) + else: + groups = self.__fetch_all(url, query) # For version +23.0.0 for group in groups: