I'm Using Microsoft Graph SDK for .Net and GraphServiceClient to retrieve the list of users but cannot apply a filter on the user property 'employeeType'. I keep getting the error 'Unsupported or invalid query filter clause specified for property 'employeeType' of resource 'User'.
result = await graphClient.Users.GetAsync(requestConfiguration =>
{
requestConfiguration.QueryParameters.Filter = "employeeType eq 'Employee'";
requestConfiguration.QueryParameters.Count = true;
requestConfiguration.Headers.Add("ConsistencyLevel", "eventual");
});
This is how I'm trying to query. Employee Type property supports advanced query capabilities as documented by Microsoft. Still, I keep getting 400 exception with the message 'Unsupported or invalid query filter clause specified for property 'employeeType' of resource 'User'.