Need help getting device state via Intune Graph

Mikey 21 Reputation points
2022-09-21T22:44:15.447+00:00

Hi

I am new to the graph api and am running a query for our managed devices using deviceManagement/managedDevices. However, the payload doesn't seem to have "device state", but it seems to have almost every other column I can see in the portal.

Field I am looking for:

243615-capture.jpg

Just wondering if someone can help here, or point me to the documentation on accessing this data.

Many thanks
Mike

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,218 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lu Dai-MSFT 28,411 Reputation points
    2022-09-22T02:30:45.17+00:00

    @Mikey Thanks for posting in our Q&A.

    Based on my test, "managementState" in Graph is the "device state" in intune portal. When I click on "F12" to open DevTools and we can get the detailed request in it. Please click on a target device and then we will get the request.
    243712-image.png

    When I request the URL in Graph explorer, I will find the "managementState" in Response.
    243713-image.png

    Hope it will help.


    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 additional answer

Sort by: Most helpful
  1. Mikey 21 Reputation points
    2022-09-22T01:03:24.21+00:00
    0 comments No comments

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.