|
@ -1307,6 +1307,23 @@ class KeycloakAdmin: |
|
|
data_raw = self.connection.raw_get(urls_patterns.URL_ADMIN_GROUP.format(**params_path)) |
|
|
data_raw = self.connection.raw_get(urls_patterns.URL_ADMIN_GROUP.format(**params_path)) |
|
|
return raise_error_from_response(data_raw, KeycloakGetError) |
|
|
return raise_error_from_response(data_raw, KeycloakGetError) |
|
|
|
|
|
|
|
|
|
|
|
def get_child_groups(self, group_id): |
|
|
|
|
|
"""Get child groups by parent id. |
|
|
|
|
|
|
|
|
|
|
|
Returns children of Parentgroup |
|
|
|
|
|
|
|
|
|
|
|
GroupRepresentation |
|
|
|
|
|
https://www.keycloak.org/docs/23.0.0/upgrading/#grouprepresentation-changes |
|
|
|
|
|
|
|
|
|
|
|
:param group_id: The parents group id |
|
|
|
|
|
:type group_id: str |
|
|
|
|
|
:return: Keycloak server response (List of GroupRepresentation) |
|
|
|
|
|
:rtype: list |
|
|
|
|
|
""" |
|
|
|
|
|
params_path = {"realm-name": self.connection.realm_name, "id": group_id} |
|
|
|
|
|
data_raw = self.connection.raw_get(urls_patterns.URL_ADMIN_GROUP_CHILD.format(**params_path)) |
|
|
|
|
|
return raise_error_from_response(data_raw, KeycloakGetError) |
|
|
|
|
|
|
|
|
def get_subgroups(self, group, path): |
|
|
def get_subgroups(self, group, path): |
|
|
"""Get subgroups. |
|
|
"""Get subgroups. |
|
|
|
|
|
|
|
|