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 Security | Intune | Other
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. Crystal-MSFT 54,201 Reputation points Microsoft External Staff
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.