Forum Discussion
admin-CPH
May 31, 2022Brass Contributor
Microsoft Graph API filter
I use $filter query parameter to retrieve the users in Department 'external' as : https://graph.microsoft.com/v1.0/users?$filter=Department eq 'external' but when I want to retrieve all the us...
VasilMichev
Jun 01, 2022MVP
Using "ne" constitutes an "advanced query": https://docs.microsoft.com/en-us/graph/aad-advanced-queries?tabs=http
So you need to use the ConsistencyLevel=eventual header and $count=true operator:
https://graph.microsoft.com/beta/users?$filter=Department+ne+'external'&$count=true
So you need to use the ConsistencyLevel=eventual header and $count=true operator:
https://graph.microsoft.com/beta/users?$filter=Department+ne+'external'&$count=true
admin-CPH
Jun 01, 2022Brass Contributor
- VasilMichevJun 01, 2022MVP
Did you set the header value?