I'm looking to apply a filter to the users endpoint, this works in the Graph Explorer:
https://graph.microsoft.com/v1.0/users?$count=true&$filter=endsWith(mail,'domain.co.uk')
but running over the API it returns Unsupported Query
If it's not supported why does it work in the Graph Explorer?
my code for refernece:
$response = $client->get("https://graph.microsoft.com/v1.0/users?\$count=true&\$filter=endsWith(mail,'domain.co.uk')", [
'headers' => [
'Authorization' => 'Bearer xxxtoken',
'content-type' => 'application/json'
]
]);