How to retrieve install status for specific app in Intune Graph API

JamesEdmondsUKPN 0 Reputation points
2023-08-30T16:10:51.8533333+00:00

We have for some time, been using the below to retrieve the install status for a specific app across all devices:

https://graph.microsoft.com/$graphApiVersion/deviceAppManagement/mobileApps/$ApplicationID/devicestatuses


This no longer seems to work, and gives us a 400 bad request. We assume this is because we are using the beta version, but were wondering if there is a replacement method we can use to achieve the same thing?

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

2 answers

Sort by: Most helpful
  1. msft-gu 1,275 Reputation points
    2023-08-30T17:35:35.39+00:00

    Hi,

    Thank you for your question. I reproduce this on my environment using:

    GET https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps/{ID}/deviceStatuses
    

    But I also encountered the same error which is Bad Request - 400 "Resource not found for the segment 'deviceStatuses'.

    I checked the documentation and cannot locate it also. It may have been removed since it is under beta.

    Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.

    I suggest providing feedback on the documentation itself to put alternatives for deviceStatuses or to further verify if they have removed it.


    If I answered your question, please upvote and accept this as answer.

    0 comments No comments

  2. Crystal-MSFT 32,661 Reputation points Microsoft Vendor
    2023-08-31T01:54:05.64+00:00

    @JamesEdmondsUKPN, Thanks for posting in Q&A. Based on my log capturing from Edge DevTool, I find the following method to get the device install status for one specific win32 app.

    User's image

    And when using Graph explorer to get the information, we can try the following:

    Action: POST

    Version: Beta

    URL:https://graph.microsoft.com/beta/deviceManagement/reports/getDeviceInstallStatusReport

    Request Body:

    {
        "select": [
            "DeviceName",
            "UserPrincipalName",
            "Platform",
            "AppVersion",
            "InstallState",
            "InstallStateDetail",
            "AssignmentFilterIdsExist",
            "LastModifiedDateTime",
            "DeviceId",
            "ErrorCode",
            "UserName",
            "UserId",
            "ApplicationId",
            "AssignmentFilterIdsList",
            "AppInstallState",
            "AppInstallStateDetails",
            "HexErrorCode"
        ],
        "skip": 0,
        "top": 50,
        "filter": "(ApplicationId eq '<your app id>')",
        "orderBy": []
    }
    

    User's image

    Hope the above information can help.


    If the answer is helpful, 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.