“ And”运算符在图形浏览器中不起作用

问题描述 投票:0回答:2

我正在尝试获取accountenabled eq true的来宾列表:

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

由于Invalid filter clause,我收到一个错误。我在做什么错?

azure-active-directory microsoft-graph
2个回答
1
投票

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

enter image description here


-1
投票

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

https://graph.microsoft.com/v1.0/users?&$filter=userType eq 'Guest' and AccountEnabled eq true
© www.soinside.com 2019 - 2024. All rights reserved.