Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,264 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Can LastPasswordChangeDateTime be filtered?
Example:
https://graph.microsoft.com/v1.0/users/?$count=true&$top=999&$orderby=displayName&$filter=(LastPasswordChangeDateTime le 2023-01-09T12:43:39Z)
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "The request uses a filter property that is not indexed",
"innerError": {
"date": "2023-02-13T16:05:41",
"request-id": "3d21e4d4-0e22-4e51-b93d-c2e662bc1aaa",
"client-request-id": "3d21e4d4-0e22-4e51-b93d-c2e662bc1aaa"
}
}
}
No, afaik no. Not all properties are supported for server-side filtering. Refer to this article for list of properties supported for $filter: https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-beta#properties