I am trting to get all admin users from Office365 using Graph Users API. But userType of Admin users is null. Due to this I am not able to apply filter userType eq null. Is there any option to get only Admin users? https://graph.microsoft.com/v1.0/users?$filter=userType eq null
error response:
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Unsupported or invalid query filter clause specified for property 'userType' of resource 'User'.",
"innerError": {
"date": "2020-07-01T17:14:04",
"request-id": "resource-id"
}
}
}