How can I specify a device ID in the Graph API?

Tomoki Endo 40 Reputation points
2024-01-22T05:29:07.1166667+00:00

I'm trying to get the app installation status of a specific device using the following API.
https://graph.microsoft.com/beta/deviceManagement/reports/getDeviceInstallStatusReport
I can specify the application by setting "filter" = "(ApplicationId eq '${appId}')" in the request parameter.
However, since the device ID is not specified, results for all devices are returned.
On the other hand, "filter" = "(ApplicationId eq '${appId}' and DeviceId eq '${deviceId}')" would result in an UnknownError.
Is there any way to specify the device ID at the time of request?

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

Accepted answer
  1. Crystal-MSFT 51,726 Reputation points Microsoft Vendor
    2024-01-22T07:37:27.4666667+00:00

    @Tomoki Endo, Thanks for posting in Q&A. Based on my checking, to get the app installation status for a specific device, we use the following API:

    Action: Get

    https://graph.microsoft.com/beta/users('userid')/mobileAppIntentAndStates('deviceid')

    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.

    1 person 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.