Skip to content

Commit

Permalink
Fix #109. Use explicit match condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sushant-pradhan authored and Jared Murrell committed Jan 27, 2022
1 parent 728da02 commit 2cfbb64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion githubapp/azuread.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_group_members(self, token=None, group_name=None):
# url encode the group name
group_name = requests.utils.quote(group_name)
graph_data = requests.get( # Use token to call downstream service
f"{self.AZURE_API_ENDPOINT}/groups?$filter=startswith(displayName,'{group_name}')",
f"{self.AZURE_API_ENDPOINT}/groups?$filter=displayName eq '{group_name}'",
headers={"Authorization": f"Bearer {token}"},
).json()
# print("Graph API call result: %s" % json.dumps(graph_data, indent=2))
Expand Down

0 comments on commit 2cfbb64

Please sign in to comment.