I have two similar fragments:
IGraphServiceUsersCollectionPage users = await graphServiceClient.Users
.Request()
.Select("id")
.Filter("department eq 'Department'")
.GetAsync();
and
IGraphServiceUsersCollectionPage users = await graphServiceClient.Users
.Request()
.Select("id")
.Filter("companyName eq 'CompanyName'")
.GetAsync();
The first fragment works correctly; the second fragment doesn't work at all.
I have success with direct request via HTTP GET
https://graph.microsoft.com/beta/users?ConsistencyLevel=eventual&$count=true&$filter=companyName eq 'Company'
So now I have a question: how I can do it with MSGraph API in C#?