Why does the Group filter "hasMembersWithLicenseErrors" not work anymore?

Macioszek, Nico 21 Reputation points
2021-11-24T14:58:02.27+00:00

Hello,

The example in this documentation states, that groups can be filtered regarding the license-issue status.

But even while using the try-it-button, the following error occurs:

{  
    "error": {  
        "code": "Request_UnsupportedQuery",  
        "message": "Unsupported or invalid query filter clause specified for property 'hasMembersWithLicenseErrors' of resource 'Group'.",  
        "innerError": {  
            "date": "2021-11-24T14:54:27",  
            "request-id": "a8f9c184-b783-45e3-9b2f-f6d77ba13e22",  
            "client-request-id": "17878bb9-3071-040f-a974-07045f81818a"  
        }  
    }  
}  

Is there another way to get groups with license errors or did this get removed from the api without further notice?

Kind regards,
Nico

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,504 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 109.7K Reputation points MVP
    2021-11-24T15:45:54.203+00:00

    It looks like the $count operator is causing this, despite what the error message above says.

    0 comments No comments

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.