Browse Source
Merge pull request #267 from coelias/master
Fix get_groups() so that it returns groups and not users
pull/312/head
Richard Nemeth
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
keycloak/keycloak_admin.py
|
@ -705,7 +705,7 @@ class KeycloakAdmin: |
|
|
""" |
|
|
""" |
|
|
query = query or {} |
|
|
query = query or {} |
|
|
params_path = {"realm-name": self.realm_name} |
|
|
params_path = {"realm-name": self.realm_name} |
|
|
url = URL_ADMIN_USERS.format(**params_path) |
|
|
|
|
|
|
|
|
url = URL_ADMIN_GROUPS.format(**params_path) |
|
|
|
|
|
|
|
|
if "first" in query or "max" in query: |
|
|
if "first" in query or "max" in query: |
|
|
return self.__fetch_paginated(url, query) |
|
|
return self.__fetch_paginated(url, query) |
|
|