Share via

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

Palmer, Michael 21 Reputation points
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 Security | Intune | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Palmer, Michael 21 Reputation points
    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

    Was this answer helpful?


  2. Crystal-MSFT 54,311 Reputation points Microsoft External Staff
    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.

    Was this answer helpful?

    0 comments No comments

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.