Forum Discussion

liam_best's avatar
liam_best
Copper Contributor
Jul 20, 2023

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, but we are looking to do this programatically.

 

Is there a way to export these events to another Azure service, or retrieve them from the Graph API/another service?

  • 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.
      • VasilMichev's avatar
        VasilMichev
        MVP
        Not 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.

Resources