Microsoft Graph API: can't filter by companyName

Copper Contributor

I am trying to filter users by the 'companyName' field and always receive a '400 Bad Request' error. As suggested in many similar issues, I added '$count=true' and the 'ConsistencyLevel=eventual' header, but still no luck. Is it possible at all to filter users in my tenant by this field?

 

betabetav1v1

3 Replies
You need both the header and $count=true, your screenshots are missing the latter.

@VasilMichev 

same with $count=true
Screenshot 2024-05-28 185305.png

And the header?

VasilMichev_0-1716963524085.png