Teams with special symbols are not synced by AAD

Teams with special symbols are not urlencoded which leads to "Invalid filter clause" response from AAD
This commit is contained in:
Buhleva 2021-04-07 09:34:24 +03:00
Родитель 6b8f735024
Коммит d0f89b3695
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -70,6 +70,8 @@ class AzureAD:
token = self.get_access_token() if not token else token
member_list = []
# Calling graph using the access token
# 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}')",
headers={"Authorization": f"Bearer {token}"},