Skip to content

Commit

Permalink
Keycloak: do exact search for group
Browse files Browse the repository at this point in the history
  • Loading branch information
NotActuallyTerry committed May 27, 2024
1 parent 4f1ea29 commit 4554b7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions githubapp/keycloak.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def get_group_id(client: KeycloakAdmin = None):
:return: The group's UUID in Keycloak
"""
group = client.get_groups(query={"search": group_name})
group = client.get_groups(query={"search": group_name, "briefRepresentation": "true", "exact": "true"})
return group[0]["id"]

def get_members(client: KeycloakAdmin = None, group_id: str = None):
Expand Down

0 comments on commit 4554b7a

Please sign in to comment.