powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

List managed devices, combination of filters devicename and userdisplayname only returns devicename results

Open wkesteloo-ydentic opened this issue 4 years ago • 0 comments

I'm trying to get a list of managed devices

A single filter on devicename returns te correct results https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=startsWith(deviceName,'D')

A single filter on userdisplayName returns results

But the combination of the 2 filter only return the devicename filters. https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=startsWith(deviceName,'r') or startsWith(userDisplayName,'E')

Is there a restricting of using both filters? or is there a problem in the api?

wkesteloo-ydentic avatar Oct 14 '21 09:10 wkesteloo-ydentic