Hi
I'm trying to run a graph api query with a filter criteria on a custom attribute in a b2c tenant. (The name of the extension apparently needs to be Uppercase in the filter clause opposed to the select clause -> "Title vs title", otherwise i get an exeception in the response).
https://graph.microsoft.com/v1.0/users?$select=id,displayName,givenName,surname,extension_[..]_customerId,extension_[..]_title,extension_[..]_locked,identities,preferredLanguage&$filter=startsWith(extension_[...]_Title,'He')
But the response is always empty.
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(id,displayName,givenName,surname,extension_[..]_customerId,extension_[..]_title,extension_[..]_locked,identities,preferredLanguage)",
"value": []
}
If i run the query without filter criteria i receive data.
https://graph.microsoft.com/v1.0/users?$select=id,displayName,givenName,surname,extension_[..]_customerId,extension_[..]_title,extension_[..]_locked,identities,preferredLanguage
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(id,displayName,givenName,surname,extension_[..]_customerId,extension_[..]_title,extension_[..]_locked,identities,preferredLanguage)",
"value": [
{
"id": "[..]",
"displayName": "[..]",
"givenName": "[..]",
"surname": "[..]",
"preferredLanguage": "de",
"extension_[..]_customerId": "[..]",
"extension_[..]_title": "Herr",
"extension_[..]_locked": false,
"identities": [
The filtering actually works for boolean values, but not for String values. This one works.
https://graph.microsoft.com/v1.0/users?$select=id,displayName,givenName,surname,extension_[..]_customerId,extension_[..]_title,extension_[..]_locked,identities,preferredLanguage&$filter=extension_[..]_locked eq false
Anyone had the same issue and knows how to fix this?