From 1f29befbdb068481fc2ab7a3fabc6e45246d404a Mon Sep 17 00:00:00 2001 From: Akos Hencz Date: Mon, 23 Jul 2018 17:04:37 +0200 Subject: [PATCH] Add query params to get_group_members --- keycloak/keycloak_admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keycloak/keycloak_admin.py b/keycloak/keycloak_admin.py index c9718f5..0dbefef 100644 --- a/keycloak/keycloak_admin.py +++ b/keycloak/keycloak_admin.py @@ -386,7 +386,7 @@ class KeycloakAdmin: return self.get_subgroups(subgroup, path) return None - def get_group_members(self, group_id): + def get_group_members(self, group_id, **query): """ Get members by group id. Returns group members @@ -396,7 +396,7 @@ class KeycloakAdmin: :return: Keycloak server response (UserRepresentation) """ params_path = {"realm-name": self.realm_name, "id": group_id} - data_raw = self.connection.raw_get(URL_ADMIN_GROUP_MEMBERS.format(**params_path)) + data_raw = self.connection.raw_get(URL_ADMIN_GROUP_MEMBERS.format(**params_path), **query) return raise_error_from_response(data_raw, KeycloakGetError) def get_group_by_path(self, path, search_in_subgroups=False):