Forum Discussion
namannassa
Jul 07, 2022Copper Contributor
Graph List Users API Filters
Hi, I am using this API to list the users - https://graph.microsoft.com/v1.0/users I am trying to filter the users using the display name. https://graph.microsoft.com/v1.0/users?$filter=star...
VasilMichev
Jul 07, 2022MVP
The error is because you're adding multiple $filter operators. Simply adjust the filter query within a single $filter operator. Refer to the official documentation if you need examples on how to build more complex filter queries: https://docs.microsoft.com/en-us/graph/query-parameters#filter-parameter
namannassa
Jul 07, 2022Copper Contributor
In the documentation, there is no example that uses multiple filters.
GET https://graph.microsoft.com/v1.0/users?$filter=startsWith(displayName,'J')
I am still trying to understand dhow we can use multiple filters with the same function - startsWith and use multiple values to match.
GET https://graph.microsoft.com/v1.0/users?$filter=startsWith(displayName,'J')
I am still trying to understand dhow we can use multiple filters with the same function - startsWith and use multiple values to match.