I have endpoint below,
https://graph.microsoft.com/beta/deviceManagement/detectedApps/de0783f6a94960672b1bcb37ddf9b8565af/managedDevices
It returns an Array called "value" as follows.
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.managedDevice)",
"@odata.count": 2,
"value": [
{
"id": "111-0d5d3d0d8921",
"userId": null,
"deviceName": "DESKTOP-XYZ1",
"ownerType": "unknown",
"managedDeviceOwnerType": "unknown",
"managementState": "managed",
"enrolledDateTime": "0001-01-01T00:00:00Z",
},
{
"id": "111-0d5d3d0d8922",
"userId": null,
"deviceName": "DESKTOP-XYZ2",
"ownerType": "unknown",
"managedDeviceOwnerType": "unknown",
"managementState": "managed",
"enrolledDateTime": "0001-01-01T00:00:00Z",
},
]
}
I need only the id attribute in the response, as follows. Is this achievable?
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(microsoft.graph.managedDevice)",
"@odata.count": 2,
"value": [
{
"id": "111-0d5d3d0d8921",
},
{
"id": "111-0d5d3d0d8922",
},
]
}