Forum Discussion
pinottinathan
Mar 19, 2024Copper Contributor
How to get Intune Device ID with Graph
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 g...
VasilMichev
Mar 19, 2024MVP
You can do it the other way around - once you have the DeviceId from Azure AD, you can filter by its value via the azureADDeviceId property on the managedDevice object:
GET https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=azureADDeviceId eq '05ab7c00-1111-2222-3333-ef539bf2a27b'
GET https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=azureADDeviceId eq '05ab7c00-1111-2222-3333-ef539bf2a27b'