Is it possible to retrieve a full list of installed applications in a device using Microsoft Graph API for Intune?

Gordon Oh 20 Reputation points
2023-03-20T11:57:00.9033333+00:00

Hello! I'm trying to use the Microsoft Graph API for Intune to retrieve a complete list of installed applications on a PC. Currently, I'm using the following code:

    def get_device_detected_apps(self, token, device_id):

        device_detected_apps = requests.get(

            '{}/deviceManagement/managedDevices/{}/detectedApps'.format(self.graph_url, device_id),

            headers={

                'Authorization': 'Bearer {}'.format(token),

                'Accept': 'application/json'

            })

        return device_detected_apps.json()

However, I've noticed that this API request doesn't return all of the installed applications on the PC. What can I do to get a full list of installed applications? In the page here (https://learn.microsoft.com/en-us/graph/api/resources/intune-devices-detectedapp?view=graph-rest-beta), it is stated that 'A managed or unmanaged app that is installed on a managed device. Unmanaged apps will only appear for devices marked as corporate owned.'. Assuming that this is relevant, how would I manage the status of my unmanaged apps? Additionally, is it possible to retrieve the installation path of each application?

Thanks!

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

Accepted answer
  1. Lu Dai-MSFT 28,386 Reputation points
    2023-03-21T01:50:35.18+00:00

    @Gordon Oh Thanks for posting in our Q&A.

    Honestly, I didn't find an API that can get unmanaged apps. Please note that graph issue is more related to develop scope. With Q&A limitation resource, it is suggested to create a Premier or Unified support ticket to get more help. Here is the support link:

    https://learn.microsoft.com/en-us/mem/get-support#premier-and-unified-support-options

    Thanks for your understanding and hope everything goes well with you.


    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.

    1 person found this answer helpful.
    0 comments No comments

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.