Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filter Microsoft Graph API

I have a small question related with the Microsoft Graph API, regarding specific functions like filter/search. I use the 'users' endpoint and what I want is to be able to combine the basic filter function (e.g.: startsWith(displayName,Name)) that is set via the query params of the request, with a 'Not Equal' function.

What I tried so far looks something like this:

https://graph.microsoft.com/v1.0/users?$filter=startswith(displayName,'Surname%20FirstName')%20ne%20'Specific%20Name'

As an exception I get back:

Request_UnsupportedQuery

Does this mean that the specific endpoint does not support Not Equal function or my request does not conform with what the API expects?

Here is a small example where I found the search function used as I said, but for another end point.

like image 609
Vlad Sima Avatar asked Mar 12 '26 15:03

Vlad Sima


1 Answers

From the documentation:

Note: The following $filter operators are not supported for Azure AD resources: ne, gt, ge, lt, le, and not. The contains string operator is currently not supported on any Microsoft Graph resources.

like image 192
Marc LaFleur Avatar answered Mar 15 '26 23:03

Marc LaFleur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!