Hi Pokemon Go , here's what I've tested and worked so far.
https://graph.microsoft.com/v1.0/users?$filter=mail ne null&$count=true
ConsistencyLevel: eventual
https://graph.microsoft.com/v1.0/users?$filter=endsWith(mail, 'com')&$count=true
ConsistencyLevel: eventual
For ne and endsWith operators, it can be achieved by adding ConsistencyLevel header and $count parameter. Since ne and endsWith operators are all advanced queries, you need to add ConsistencyLevel header and $count parameter.
And for contains operator, it was confirmed that the contains operator only supports some APIs in a previous post.
Hope this helps. Best Wishes.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.