“和”操作员无法在图形浏览器中使用

时间:2018-09-04 08:10:31

标签: azure-active-directory microsoft-graph

我正在尝试列出accountenabled eq true的来宾名单:

/v1.0/users?&$filter=userType eq 'Guest' and AccountEnabled eq 'true'

由于Invalid filter clause,我收到一条错误消息。我在做什么错了?

2 个答案:

答案 0 :(得分:1)

问题不是由and引起的,我们需要使用''删除'true',只需使用GET https://graph.microsoft.com/v1.0/users?&$filter=userType eq 'Guest' and AccountEnabled eq true,就可以了。

enter image description here

答案 1 :(得分:-1)

根据您的问题,参数类型无效。我们需要为相应的参数/参数传递合适的参数值。 “ true”是字符串,但true应该是bool / object。

https://graph.microsoft.com/v1.0/users?&$filter=userType eq 'Guest' and AccountEnabled eq true