I am trying to retrieve the Azure AD user sign-in audit logs for our tenant. For this, I am using [Microsoft’s graph APIs][1]
https://graph.microsoft.com/v1.0/auditLogs/signIns?$filter=createdDateTime ge 2019-10-08T09:00:00.0000000 and createdDateTime le 2019-10-08T09:12:00.0000000
In the above-given example,
I am trying to filter the logs based on a query option, $filter where I am trying to retrieve the records based on createDateTime,
from Date 2019-10-08T09:00:00.0000000 and to date 2019-10-08T09:12:00.0000000.
Every time I am getting the records from the current time and going back in history. This means, irrespective of any date range I provide, it gets ignored.
For that matter when I apply any OData (https://docs.microsoft.com/en-us/graph/query-parameters#odata-system-query-options) query options ($top, $orderby, etc), the API still returns with the latest audit logs and none of the query options seems to work.
Could this be due to the permissions or the license? Any help is much appreciated.
With the given date ranges I should be able to get the audit logs between the ranges.