Microsoft Graph client: how to filter by endswith
In this post we're going to look at filtering using an endswith
filter with the Microsoft Graph client. This falls into the category of "Advanced query capabilities on Microsoft Entra ID objects" and I found tricky to get working.
Performing an endsWith
or similar filter shouldn't be difficult. But the method of how to do so isn't obvious. If you've ever encountered a message like this:
Operator 'endsWith' is not supported because the 'ConsistencyLevel:eventual' header is missing. Refer to https://aka.ms/graph-docs/advanced-queries for more information
Then this blog post is for you.