Search code examples
azureazure-active-directoryazure-ad-graph-apiazureportalaudit-logging

Date time filter on azure graph API


How do I apply Date time filter on this particular Microsoft API:

https://graph.windows.net/<tenantdomain>/activities/audit?api-version=beta

https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/concept-audit-logs


Solution

  • If you want to filter audit logs by Date, just try request below:

    https://graph.windows.net/<tenantdomain>/activities/audit?api-version=beta&$filter=activityDate ge/le <timestamp>
    

    Result:

    enter image description here