When attempting to search groups in the Graph API using the literal # symbol, the API returns an error even when URI encoding the search string.
For example:
https://graph.microsoft.com/v1.0/groups?$select=id,displayName,description&$search="displayName:%23"
(with the ConsistencyLevel:eventual header)
Graph API returns this error:
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Syntax error in $search. A right $search should be $search=\"property:textToSearch\" [OR|AND \"anotherProperty:text\"].",
}
}
I've tried various other quoting or escaping techniques with no success. Is there a right search when using this character?