使用查询参数“ $ filter”时的Microsoft图形问题

时间:2018-09-16 15:13:11

标签: microsoft-graph

微软图形团队嗨,

我发现了一个错误,并与您分享。
我正在使用带有$过滤器的beta请求连接信息,因为我只想在特定应用程序中和从特定日期检索登录凭据。 这是我使用的请求:

 https://graph.microsoft.com/beta/auditLogs/signIns?$filter=(startswith(appDisplayName, 'Office 365 Exchange') or startswith(appDisplayName,'Skype') or startswith(appDisplayName,'Microsoft Teams')) and createdDateTime ge 2018-09-12T06:25:59.0000000Z

请求运行良好,但是如果我从过滤器中删除应用程序之一,如下所示:

 $filter=(startswith(appDisplayName, 'Office 365 Exchange') or startswith(appDisplayName,'Skype')) and createdDateTime ge 2018-09-12T06:25:59.0000000Z

过滤器不再考虑日期过滤,而是向我返回在所选应用程序上建立的所有连接。

我做了一些测试,我发现当在“和”之前的括号之间时,只有2个应用程序无效。

要解决此问题,当我只想选择两个应用程序时,我复制其中一个应用程序,并且运行良好。像这样:

$filter=(startswith(appDisplayName, 'Office 365 Exchange') or startswith(appDisplayName,'Skype') or startswith(appDisplayName,'Skype')) and createdDateTime ge 2018-09-12T06:25:59.0000000Z

此致

0 个答案:

没有答案