Need help with Graph API - Windows Protection State & Windows Update State reporting for all devices

Palmer, Michael 1 Reputation point
2021-07-28T15:15:28.477+00:00

Hi,

Trying to access the Graph API data for Windows Protection Status and Windows Update state as detailed in the API references below. The issue is I would like to report on all devices plus the documentation is confusing as it requires additional parameters which I don't know where to get them.

https://learn.microsoft.com/en-us/graph/api/managedtenants-windowsprotectionstate-get?view=graph-rest-beta&tabs=http
https://learn.microsoft.com/en-us/graph/api/intune-shared-windowsupdatestate-update?view=graph-rest-beta

How someone can help me please.

Regards

Mike

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

2 answers

Sort by: Most helpful
  1. Crystal-MSFT 48,591 Reputation points Microsoft Vendor
    2021-07-29T01:34:21.31+00:00

    anonymous user, May be we can go to Intune portal, click F12 and go to the location in Intune portal where we can get Windows Protection state & Windows Update state. And then check the log to see if we can get the additional parameter information we want:
    118833-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    0 comments No comments

  2. Palmer, Michael 1 Reputation point
    2021-07-29T17:25:57.34+00:00

    Hi Crystal,

    Thank-you for the information. I tried to take a closer look this morning but could not find a way to get the information out so far. I tried going to the Intune Reports section and running the report to get the output of all devices and the protection status. Of-course you need to generate the report first for that one and it didn't work for my Application ID.

    What I didn't say in my initial post is my requirements includes reporting that data into Power BI therefore using custom code to return the data due to OAuth2. I know the AAD Application ID is correct and the data is available as the BI for Intune trial Power BI reports can get all the data from the MS Graph so I know it is possible.

    Mike


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.