Home > Enterprise >  Unsupported query while retrieving list of users via Microsoft Graph
Unsupported query while retrieving list of users via Microsoft Graph

Time:05-13

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 : enter image description here

Make sure to include Time stamp in below format:

createdDateTime ge yyyy-MM-ddTHH:mm:ssZ

For more in detail, please refer below link:

Azure graph API for users doesn't support filter by createdDateTime anymore - Microsoft Q&A

CodePudding user response:

Please change your query to:

https://graph.microsoft.com/v1.0/users?$select=createdDateTime, displayName, id, mail&$filter=createdDateTime le 2021-07-14T00:00:00Z

and then you should not get this error.

Basically you will need to specify the date/time value in yyyy-MM-ddTHH:mm:ssZ format.

  • Related