[英]MS Graph API filter on forceChangePasswordNextSignIn
In Microsoft Graph, I want to list users who have forceChangePasswordNextSignIn turned on.在 Microsoft Graph 中,我想列出已启用 forceChangePasswordNextSignIn 的用户。
The MS Docs state that passwordProfile/forceChangePasswordNextSignIn
is filterable, but if I runMS Docs state
passwordProfile/forceChangePasswordNextSignIn
是可过滤的,但如果我运行
https://graph.microsoft.com/v1.0/users?$filter=passwordProfile/forceChangePasswordNextSignIn%20eq%20true https://graph.microsoft.com/v1.0/users?$filter=passwordProfile/forceChangePasswordNextSignIn%20eq%20true
I get...我得到...
"error": {
"code": "Request_UnsupportedQuery",
"message": "Unsupported or invalid query filter clause specified for property 'forceChangePasswordNextSignIn' of resource 'User'.",
The $filter queries requires a special header that is consistencylevel:eventual and the $count=true in the end of the query. $filter 查询需要一个特殊的 header,即 consistencylevel:eventual 和查询末尾的 $count=true。
Try with the query: https://graph.microsoft.com/v1.0/users?$filter=passwordProfile/forceChangePasswordNextSignIn%20eq%20true&$count=true
尝试查询:
https://graph.microsoft.com/v1.0/users?$filter=passwordProfile/forceChangePasswordNextSignIn%20eq%20true&$count=true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.