Forum Discussion
liam_best
Jul 20, 2023Copper Contributor
Programatically retrieve Secure Score Activities
Hi there, I am wondering if it is possible to retrieve a list of activities taken to increase/decrease a tenant's Secure Score. I can see that it is possible to export to CSV from the frontend, ...
VasilMichev
Jul 20, 2023MVP
If you take a look at the underlying API query, this data is exposed as part of the scoreImpactChangeLogs property of the secureScoresV2 object. Unfortunately, this has not yet made its way to the Graph API itself, so you either have to query the security API instead or capture the browser output.
- liam_bestJul 21, 2023Copper Contributor
Hi VasilMichev, thanks for the reply!
Do you happen to know what authentication is required to access this URL:
(https://security.microsoft.com/apiproxy/mtp/secureScore/security/secureScoresV2?$top=400)
We are currently using MSAL to query the graph API, but it seems this uses a different authentication mechanism, along with a few headers I have not seen before (sccauth)...
- VasilMichevJul 21, 2023MVPNot sure, sorry. Some of the APIs are internal only, there is no way for us to authenticate against those (well apart from capturing a token from the browser). Best wait for the property to appear in Graph - I pinged some folks on this.