Jul 16 2020 08:10 AM
Hi there,
I am wondering that there is a mismatch between the Secure Score value in the Microsoft 365 Security Center and the Graph API.
When I check the Secure Score in the Microsoft 365 Security Center, the displayed score is 48.09% and 377 from 784 points. When I query the values from the Microsoft Graph, the returned score is 44.88% and 136 from 303 points.
To receive values from the Graph, I do a GET on https://graph.microsoft.com/v1.0/security/secureScores
Can you tell where the mismatch is coming from? Do I need further parameters using the API?
Kind regards,
Julian
Jul 18 2020 07:10 AM
@julianmwe Use the developer tools in your browser to see what API' are called when the dashboard is created. That will give you more insight. I don't think the Graph API is used to build this dashboard.
Jul 21 2020 01:33 AM
Thanks @JanBakkerOrphaned. I figured out that the difference comes from the fact, that I used the Secure Score preview in the portal which is not included in the API yet.
Jul 21 2020 03:44 AM
@julianmwe ah okay. How did you found the API's? With the developer tools?
Jul 21 2020 04:49 AM
@JanBakkerOrphaned Nope. I noticed a link to the stable release of the Secure Score in the portal which simply matches with the values I got from the API. Also a colleague shared this link with me were is stated, that the API does not cover the functionalities of the portal yet: https://docs.microsoft.com/en-us/microsoft-365/security/mtp/microsoft-secure-score?view=o365-worldwi...
I also tried to get the right Uri with the Dev Tools. It seems that the portal is using "https://securescore.office.com/security" but I don't not how to use it.
I decided to wait until the preview functionality is also available in the API.