Graph API - Filter Users on forceChangePasswordNextSignIn

Trina 21 Reputation points

I want to list users who have forceChangePasswordNextSignIn turned on. states that passwordProfile/forceChangePasswordNextSignIn is filterable, but if I run$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.
17,446 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michel de Rooij 1,526 Reputation points MVP

    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