How to get detected apps info using v1.0 graph API

Prueba intune 6 Reputation points
2021-09-28T12:41:00.543+00:00

Hello,

In the beta version of the graph API, I can send the following request to get all the detected apps of a device: GET https://graph.microsoft.com/beta/deviceManagement/managedDevices/{deviceid}?$expand=detectedApps

This request is not available for v1.0, and I have a bad request response when I send it: GET https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/{deviceid}?$expand=detectedApps

How can I retrieve the detected apps of a device using v1.0 of graph API?

Best Regards,
Jose

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,492 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Danstan Onyango 3,821 Reputation points Microsoft Employee
    2021-09-30T09:17:11.3+00:00

    Have you tried List detectedApps and expanding the managed device relationship like https://graph.microsoft.com/v1.0/deviceManagement/detectedApps?$expand=managedDevices? Since the feature you are using is in beta, you can test with that and avoid using in production as they still may change . You may also still create a feature request on Microsoft 365 Developer Platform.

    0 comments No comments

  2. Prueba intune 6 Reputation points
    2021-10-01T10:40:05.637+00:00

    With the proposed request (1) I have deviceCount info but I don't have any info to identify these devices that have the app installed. Is this the expected behavior? I have same response with the request without the $expand param (2)

    On the other hand, if I have a response with all the applications of the Intune account (including, for every app, all the devices that have it installed), I will have a very heavy response for Intune accounts with a lot of devices.

    Is there in v1.0 of the Graph API a request to get the detectedApps of a unique device?

    (1) GET https://graph.microsoft.com/v1.0/deviceManagement/detectedApps?$expand=managedDevices
    (2) GET https://graph.microsoft.com/v1.0/deviceManagement/detectedApps

    0 comments No comments

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.