Hello,
I am trying to filter users by the postalCode field in an Azure's AD B2C using the graph service. I tried in two ways:
a) without advanced filters:
https://graph.microsoft.com/v1.0/users?$filter=postalCode eq 'qqq'
b) with the advanced query options:
https://graph.microsoft.com/v1.0/users?$count=true&$filter=postalCode eq 'qqq'
and the ConsistencyLevel: eventual set in the header.
This is the response I get with both attempts:
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Unsupported or invalid query filter clause specified for property 'postalCode' of resource 'User'.",
"innerError": {
"date": "2023-01-26T15:46:53",
"request-id": "",
"client-request-id": ""
}
}
}
According to this page I found, the postalCode should be available for filtering:
https://learn.microsoft.com/en-us/graph/aad-advanced-queries?tabs=http#user-properties
Is there something that I am doing wrong? Did I misunderstand the docs?
Best regards,
Cristi