Graph API - Filter Users on forceChangePasswordNextSignIn

Trina 21 Reputation points
2022-03-27T14:39:23.77+00:00

I want to list users who have forceChangePasswordNextSignIn turned on.

https://learn.microsoft.com/en-us/graph/aad-advanced-queries states that passwordProfile/forceChangePasswordNextSignIn is filterable, but if I run

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'." ...

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,700 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michel de Rooij 1,536 Reputation points MVP
    2022-03-27T15:49:58.567+00:00

    You missed remark for the green-balled checkmark for forceChangePasswordNextSignIn, i.e.

    The $filter operator requires advanced query parameters, which are:
    ConsistencyLevel=eventual header
    $count=true query string


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.