我正在尝试构建Graph Rest API以基于此列出登录审核
https://docs.microsoft.com/en-us/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0
似乎此API的filter子句无效。
我想过滤特定日期的所有Windows登录,并且已经在查询下面进行了构建。
auditLogs / signIns?$ filter = createdDateTime ge 2020-04-28和appDisplayName eq'Windows登录'
似乎总是返回随机数的记录。
我能够从Azure门户下载审核登录报告,并且它总是下载正确的信息
任何人在使用Filerting图形API时遇到任何类似的问题吗?
请尝试以下查询,并让我知道您的发现
https://graph.microsoft.com/v1.0/auditLogs/signIns?$filter=createdDateTime ge 2020-04-28 and startswith(deviceDetail/operatingSystem,'Windows')