Graph API - How to retrieve Apps & the devices they are installed on

AzurePixel 21 Reputation points
2020-08-04T20:03:43.787+00:00

Hi experts,
I am new to Azure/Intune/AD. My background is Python programming.

I have been requested to pull devices & the installed apps on them from Azure/Intune.

We have windows laptops in Intune.

1 I am able to query them using the following Graph endpoint,

https://graph.microsoft.com/beta/deviceManagement/managedDevices

2 I am able to pull the installed devices using the following Graph endpoint, (I am not sure if that is the correct end point, just shooting in the dark at this moment)

https://graph.microsoft.com/beta/deviceManagement/detectedApps
Sample response object:
{
"id": "fdb8939867baf88uu99ii00khghgfjh090093d714c280c935b524e4",
"displayName": "SpotifyAB.SpotifyMusic",
"version": "1.134.694.0",
"sizeInByte": 0,
"deviceCount": 1
},

However, none of the responses give me any key/id attribute(s) to relate the apps to the devices.

I want to be able to pull the device, the apps installed on them, and relate the two together.

Any help would be appreciated,

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,526 Reputation points Moderator
    2020-08-04T21:11:54.017+00:00

    Please try this:

    https://graph.microsoft.com/beta/deviceManagement/detectedApps/{id}/managedDevices

    E.G:

    https://graph.microsoft.com/beta/deviceManagement/detectedApps/fdb8939867baf88uu99ii00khghgfjh090093d714c280c935b524e4/managedDevices

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.