我正在嘗試按照Microsoft Graph API中的屬性篩選用戶。基本上試圖獲得已分配給定jobTitle
的用戶列表。在MSGraph中篩選用戶
例如,https://graph.microsoft.com/v1.0/users?$filter=jobtitle eq 'ACCOUNT EXECUTIVE'
返回用戶列表。
我的要求是查詢沒有JobTitle
的用戶。
試過https://graph.microsoft.com/v1.0/users?$filter=jobtitle ne null
,並得到以下消息。
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Unsupported property filter clause operator 'NotEqualsMatch'.",
"innerError": {
"request-id": "c9b290bf-2902-4b79-b35b-0f5d251ad80b",
"date": "2017-09-14T11:18:52"
}
}
}