question

Pruebaintune-9639 avatar image
0 Votes"
Pruebaintune-9639 asked Pruebaintune-9639 answered

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

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-sdk
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Danstan-MSFT avatar image
0 Votes"
Danstan-MSFT answered Danstan-MSFT edited

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Pruebaintune-9639 avatar image
0 Votes"
Pruebaintune-9639 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.