Microsoft Graph - Filtering managed devices by wiFiMacAddress/ethernetMacAddress returns all device records

Peter Gravelin 21 Reputation points
2022-07-20T18:16:06.09+00:00

I'm currently trying to retrieve devices registered with Intune via the Company Portal using the API v1.0/deviceManagement/managedDevices?$filter=.

I'm able to filter by serialNumber as expected, but when I try filtering by wiFiMacAddress/ethernetMacAddress, all registered devices are returned in the response.

Using the Graph Explorer, I made some requests with valid values for serialNumber, wiFiMacAddress, and ethernetMacAddress. The urls were formatted as shown:
https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=serialNumber eq 'XXXXXXXXXXXX'
https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=wiFiMacAddress eq 'XXXXXXXXXXXX'
https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=ethernetMacAddress eq 'XXXXXXXXXXXX'

Out of curiosity, I also tried using startsWith and endsWith, with the same results: serialNumber works but neither MAC address.

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

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.