I want to retrieve list of specific users who were created before some particular date via Microsoft Graph Explorer.
I am following this Microsoft document : List users - Microsoft Graph v1.0 | Microsoft Docs to form the query.
I tried querying like below:
GET
https://graph.microsoft.com/v1.0/users?$select=createdDateTime, displayName, id, mail&$filter=createdDateTime le 2021-07-14
But I am getting the error as below:
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Unsupported or invalid query filter clause specified for property 'createdDateTime' of resource 'User'.",
"innerError": {
"date": "2022-05-12T14:24:38",
"request-id": "5378dd7c-7413-4b97-9399-09a6f4f11c50",
"client-request-id": "ba9f70f4-f33c-c753-fb3a-c6f1a197ef46"
}}}
I have given the required permissions mentioned in the Microsoft document. I am thinking that there is something wrong in my query.
Can anyone help me with the query?
