From 26ff4f284194cffbbd8928780263f97cf1eed7b0 Mon Sep 17 00:00:00 2001 From: Samiul Sk Date: Sun, 7 Apr 2024 16:19:48 +0530 Subject: [PATCH] fix: get_groups pagination call was not used #537 (#541) --- 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: