Microsoft Graph Api - Device Action Results for Managed Devices is not being returned correctly.

Swahela Mulla 95 Reputation points
2023-04-12T17:36:25.17+00:00
   {
       "@odata.context": "https://graph.microsoft.com/beta/$metadata#deviceManagement/managedDevices(deviceActionResults)",
       "@odata.count": 87,
       "value": [
           {
               "deviceActionResults": []
           },
           {
               "deviceActionResults": []
           },
           {
               "deviceActionResults": []
           }
   }
  • Second Case : When I'm trying to retrieve deviceActionResults info for single device using id then for some devices it blank only and for some device it is showing below info but not able to see deviceLocation in any device and my main target is to retrieve the device location.
  • GET /deviceManagement/manageddevices/{managedDeviceId}?$select=deviceActionResults
   {
       "@odata.context": "https://graph.microsoft.com/beta/$metadata#deviceManagement/managedDevices(deviceActionResults)/$entity",
       "deviceActionResults": [
           {
               "actionName": "rebootNow",
               "actionState": "done",
               "startDateTime": "2022-11-20T06:39:52.1455205Z",
               "lastUpdatedDateTime": "2022-11-20T06:45:18Z"
           }
       ]
   }
Microsoft Security Intune Other
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bhanu Kiran 3,616 Reputation points
    2023-04-12T22:38:17.9166667+00:00

    Hello @Swahela Mulla ,

    This behavior is by design, it only returns default value for deviceActionResults in LIST call. To get the real value, you need to use the GET call with select parameter.

    The list view only provides a subset of properties - this is to enable fast filtering and querying of the most commonly viewed properties.

    The device detailed view (filtering to a specific device) provides the full details of a device.

    Please note that this resource type does not return device Location. locateDeviceActionResult resource type will provide the geoLocation of the device.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.