Getting detected apps per device GraphApi

marceliwut 0 Reputation points
2023-04-03T13:15:26.6366667+00:00

Hello,

I would like to retrieve all detected apps for Windows platform. I am using JSON file as follows but it returns http error 400 Bad Request in my PowerShell code.

If I get rid of the filter from the 3rd line, then it works simply fine, but the output is too big to be processed further (it's a list of all apps on all devices). I am sure that DEVICENAME is part of the report, it's just filtering that is not working. Any ideas how to make it work?

{
    "reportName": "DetectedAppsRawData",
    "filter": "(DeviceName eq 'DEVICENAME')",
    "format": "csv",
    "select": [ 
             "DeviceName",
             "ApplicationName",
             "ApplicationVersion",
             "Platform"
             ]      
}

Are there any other options on how to get detectedApps (including win32, msi etc. not deployed by intune) for specific device and not other way around? I have found:

https://graph.microsoft.com/beta/managedDevices/<DeviceId>/detectedApps

on one of the forums but it looks like this one does not work for any deviceId I enter...

Thanks!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,898 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,503 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lu Dai-MSFT 28,361 Reputation points
    2023-04-04T01:50:59.9833333+00:00

    @marceliwut Thanks for posting in our Q&A.

    Honestly, I'm not familiar with Powershell. And I only share some information from Graph.

    We also called Intune detected apps as "Intune discovered apps". For intune discovered apps, Intune never collects information on applications that are unmanaged on personal devices. However, any app whether it's a managed app or not is collected on corporate devices.

    https://learn.microsoft.com/en-us/mem/intune/apps/app-discovered-apps

    We can click on "F12" to open DevTool. When we click on "Discovered apps", we can see the specific request. User's image

    Then we can run the request URL in Graph explorer, we will see the detected apps. User's image

    Hope it will give you some ideas.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.