Mar 19 2024 06:27 AM
Hi all
I'm looking for a solution on how to get a Intune Device ID of an enrolled device.
What I need:
Send some commands to manage devices using Graph, based on the Owner or PrimaryUser of a given device, for example:
POST https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/{managedDeviceId}/rebootNow
This call would reboot the device. Notice that I need to have the managedDeviceId, which is the "Intune Device ID"
The challenge is, how to get this Intune Device ID based on the device PrimaryUser or Device Owner using Graph?
I've already tried the GET https://graph.microsoft.com/v1.0/{user}/ownedDevices - it doesn't help me because It will retrieve the the Object and Device ID not the Intune Device ID.
Any suggestion is appreciated
Regards
Mar 19 2024 11:40 AM