Is there a relationship between odata type microsoft.graph.device and microsoft.graph.managedDevice?

Joe Mayer 20 Reputation points
2025-02-25T22:24:38.6+00:00

To reproduce:

  1. List all of the devices under the microsoft.graph.device API GET /devices
    1. Some records are (or must by) managed by intune.
  2. For the one's managed by intune attempt to use the id, or device_id from the above query and attempt to query the managedDevice record via: /v1.0/deviceManagement/managedDevices/{managedDeviceId}
    1. Notice you don't get results.

Looking at the data I have, the only way I think we can reconcile and deduplicate the sum of devices that exist according to the graph SDK via /devices endpoint and /v1.0/deviceManagement/managedDevices is to make the following associations:

  • device's registeredUsers looks to map to manageddevices userId
  • device's displayName looks to map to manageddevices deviceName

Is there a stronger/correct relationship to use?

Update:

It looks like device_id can be used to map to azureADDeviceId however trying to query the manageDevice endpoint ends in error.

This makes me think that there is no field in the devices endpoint that can map to a managedDevice. However, you can query the manageDevice endpoint and use azureADDeviceId to query the Device's by device_id.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,131 questions
0 comments No comments
{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.