如何在Microsoft Graph API中使用IN运算符



我想筛选clientAppUsed为"Exchange ActiveSync"或"Exchange Web Services"的记录。

我可以这样做:

https://graph.microsoft.com/beta/auditLogs/signIns?$filter=clientAppUsed eq 'Exchange ActiveSync' or clientAppUsed eq 'Exchange Web Services'

但是我想在运算符中使用

根据本文件:https://learn.microsoft.com/en-us/graph/query-parameters#examples-使用过滤查询运算符

我的查询应该是这样的:

https://graph.microsoft.com/beta/auditLogs/signIns?$filter=clientAppUsed in ('Exchange ActiveSync', 'Exchange Web Services')

但它不起作用。

UnknownError: Please try again after some time.

我等了又试,结果还是一样。

有人知道如何正确使用in运算符吗?或者有不同的方法可以在查询不过长的情况下获得相同的结果吗?

如果只有DOC 中提到的几种情况,则可能使用In运算符

你能检查一下这是否只是为了你的查询,还是";在";运算符不适用于任何查询。

试试这个:

https://graph.microsoft.com/v1.0/users?$filter=department in ('Retail', 'Sales')

最新更新