We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 728da02 commit 2cfbb64Copy full SHA for 2cfbb64
1 file changed
githubapp/azuread.py
@@ -73,7 +73,7 @@ def get_group_members(self, token=None, group_name=None):
73
# url encode the group name
74
group_name = requests.utils.quote(group_name)
75
graph_data = requests.get( # Use token to call downstream service
76
- f"{self.AZURE_API_ENDPOINT}/groups?$filter=startswith(displayName,'{group_name}')",
+ f"{self.AZURE_API_ENDPOINT}/groups?$filter=displayName eq '{group_name}'",
77
headers={"Authorization": f"Bearer {token}"},
78
).json()
79
# print("Graph API call result: %s" % json.dumps(graph_data, indent=2))
0 commit comments