Issue in Matching Department Name while using Microsoft Graph API V1.0
问题 I am using below code to match Department Name: string departmentName = "Admin"; var departmentPeoples = await graphServiceClient.Users.Request().Filter($"department eq '{departmentName}'").Select(u => new { u.DisplayName, u.MobilePhone, u.BusinessPhones, u.UserPrincipalName }).GetAsync(); This works, but when my search string is Admin & IT ,it doesn't work because of & sign. I tried using var departmentname ="Admin \& IT" But still it shows error: Microsoft.Graph.ServiceException: 'Code: