3
votes

According to the documentation https://docs.microsoft.com/en-us/graph/query-parameters?#count-parameter I should be able to get the count by using https://graph.microsoft.com/beta/users?count=true but it doesn't work... Also I found that if I add ConsistencyLevel: eventual to the request header I do get a count but it's not in the documentation so I'm not sure the count is the real user count

Am I missing something?

1

1 Answers

4
votes
  GET https://graph.microsoft.com/beta/users?$search="displayName:wa"&$orderby=displayName&$count=true
    ConsistencyLevel: eventual

Please refer to this document which tells we need to use ConsistencyLevel: eventual