我正在尝试列出accountenabled eq true
的来宾名单:
/v1.0/users?&$filter=userType eq 'Guest' and AccountEnabled eq 'true'
由于Invalid filter clause
,我收到一条错误消息。我在做什么错了?
答案 0 :(得分:1)
问题不是由and
引起的,我们需要使用''
删除'true'
,只需使用GET https://graph.microsoft.com/v1.0/users?&$filter=userType eq 'Guest' and AccountEnabled eq true
,就可以了。
答案 1 :(得分:-1)
根据您的问题,参数类型无效。我们需要为相应的参数/参数传递合适的参数值。 “ true”是字符串,但true应该是bool / object。
https://graph.microsoft.com/v1.0/users?&$filter=userType eq 'Guest' and AccountEnabled eq true