Browse Source

Merged in ak0ska/python-keycloak/group_query_params (pull request #16)

Add query params to get_group_members

Approved-by: Marcos Pereira <marcospereira.mpj@gmail.com>
hotfix/merge
ak0ska 6 years ago
committed by Marcos Pereira
parent
commit
3f5f64cdf9
  1. 4
      keycloak/keycloak_admin.py

4
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):

Loading…
Cancel
Save