简体   繁体   English

MS Graph API 过滤器 forceChangePasswordNextSignIn

[英]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

Refer the DOC , Hope this helps.参考文档,希望这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MS Graph API 多租户权限 - MS Graph API permission for multiple tenant MS Graph API - 来自 C# 的 getPstnCalls - MS Graph API - getPstnCalls from C# 在 Microsoft Azure 上筛选(搜索)(图)API - Filter (searching) on Microsoft Azure (graph) API 是否有计划让“groups.link”属性返回 MS Graph API URL? - Are there any plans for the 'groups.link' attribute to return MS Graph API URLs? 如何在没有用户登录的情况下检索 .NET Core Web API 的 MS Graph 访问令牌 - How to retrieve an MS Graph access token for a .NET Core Web API without user sign in Azure 通过 Rest API 或 python 模块(MS Graph)按名称或 email 地址搜索用户、组或服务原则? - Azure search for user, groups, or service principle by name or email address via Rest API or python module (MS Graph)? 如何在 MS Graph API 中从 Java SDK 获取附件资源的原始内容? - How do I get the raw content of attachment resources from Java SDK in MS Graph API? 尝试获取 MS Graph API 令牌时缺少用户的 ImmutableID(Windows 身份验证) - ImmutableID of the user missing when trying to acquire a token for MS Graph API (Windows auth) 如何在接收邮件图中应用 time 和 isRead 这两个过滤器 API - How to apply time and isRead both filter in receive mail graph API MS Graph - 客户端凭证流 - MS Graph - Client Credential Flow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM