From 29c7b61c5a678514a30be18cc087b2064445238e Mon Sep 17 00:00:00 2001 From: Fabien Salles Date: Tue, 4 Feb 2025 17:08:26 +0100 Subject: [PATCH] fix(keycloak): update more than 10 sub-groups (#9690) --- plugins/module_utils/identity/keycloak/keycloak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/identity/keycloak/keycloak.py b/plugins/module_utils/identity/keycloak/keycloak.py index 74a6b33150..a8c7ee3674 100644 --- a/plugins/module_utils/identity/keycloak/keycloak.py +++ b/plugins/module_utils/identity/keycloak/keycloak.py @@ -1549,7 +1549,7 @@ class KeycloakAPI(object): if parent['subGroupCount'] == 0: group_children = [] else: - group_children_url = URL_GROUP_CHILDREN.format(url=self.baseurl, realm=realm, groupid=parent['id']) + group_children_url = URL_GROUP_CHILDREN.format(url=self.baseurl, realm=realm, groupid=parent['id']) + "?max=" + str(parent['subGroupCount']) group_children = self._request_and_deserialize(group_children_url, method="GET") subgroups = group_children else: