I'm trying to write a Microsoft Graph query to search for groups containing a particular substring and does not seem to work. I am trying
https://graph.microsoft.com/v1.0/groups?$filter=contains(displayName, 'test')
I get an error
{
"error": {
"code": "Request_BadRequest",
"message": "An unknown function with name 'contains' was found. This may also be a key lookup on a navigation property, which is not allowed.",
"innerError": {
"date": "2021-07-05T02:45:01",
"request-id": "bbbc58ed-bc0f-4a76-ba41-42a467736518",
"client-request-id": "fd41da80-0382-8431-027f-e76fd9054fc8"
}
}
}
According to this, contains is not supported, is there a different way to get this done, I would assume this is a standard requirement and there should be some way to get this done. My use case scenario is that a user types in a team name and I return all the teams which contains the given string. Is this possible through the search API?