Forum Discussion
geekganesh
Aug 27, 2020Copper Contributor
Secure Score API - Displaying limited controls and missing Data and Device controls
When i make a Rest API call to SecureScore API, i get only 12 to 14 controls. I am getting results for Identity controlCategory but not for Data / Device. In https://developer.microsoft.com/en-us...
Hanyang_Luo
Feb 29, 2024Copper Contributor
Hey,
I had the same problem, and I just found the solution. There is a "-all" flag you can provide when calling the "Get-MgSecuritySecureScoreControlProfile" endpoint. Without this flag, I assume the API will only return a portion of the control profiles. I used powershell to do this and you can see the example below.