Skip to content

Commit 2cfbb64

Browse files
sushant-pradhanJared Murrell
authored andcommitted
Fix #109. Use explicit match condition
1 parent 728da02 commit 2cfbb64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

githubapp/azuread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_group_members(self, token=None, group_name=None):
7373
# url encode the group name
7474
group_name = requests.utils.quote(group_name)
7575
graph_data = requests.get( # Use token to call downstream service
76-
f"{self.AZURE_API_ENDPOINT}/groups?$filter=startswith(displayName,'{group_name}')",
76+
f"{self.AZURE_API_ENDPOINT}/groups?$filter=displayName eq '{group_name}'",
7777
headers={"Authorization": f"Bearer {token}"},
7878
).json()
7979
# print("Graph API call result: %s" % json.dumps(graph_data, indent=2))

0 commit comments

Comments
 (0)