Hi, we've successfully added extended attributes to our users in a b2c tenant, and a simple query returns a list of users like this:
https://graph.microsoft.com:443/v1.0/users?$count=true&$select=id,extension_xxxxxxxxxxxxxx_timestamp
[
{
"id": "0031ce73-e82c-4bf8-9d16-374323fba0eb",
"extension_xxxxxxxxxxxxxxxx_Timestamp": 1638224961
}...
]
Obviously the extensions are working, because they are shown in the results list.
What we want to do is select where the timestamp is greater than a certain amount. The filter we're using is
extension_xxxxxxxxxxxxxxxx_Timestamp ge 0
... which should return them all, but is just an empty list. However, even using
extension_xxxxxxxxxxxxxxxx_Timestamp eq 1638224961
returns an empty list without any error. We've tried setting the $count to be true and header ConsistencyLevel as eventual as suggested for advanced queries, but it's consistently returning no results. In fact, we can't filter using any of our custom attributes, of whatever type.
Query looks like this:
https://graph.microsoft.com:443/v1.0/users?$count=true&$select=id, extension_xxxxxxxxxxxxxx_timestamp &$filter=extension_xxxxxxxxxxx_Timestamp eq 1638224961
We have tried using the beta api, and we have also tried setting the api permission Directory.AccessAsUser.All as set out in this answer - https://docs.microsoft.com/en-us/answers/questions/403031/graph-api-azure-b2c-filter-for-string-extension-at.html
Thanks