Is there a relationship between odata type microsoft.graph.device and microsoft.graph.managedDevice?
To reproduce:
- List all of the devices under the microsoft.graph.device API
GET /devices
- Some records are (or must by) managed by intune.
- 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}
- 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 manageddevicesuserId
- device's
displayName
looks to map to manageddevicesdeviceName
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.