Secure Score API - Displaying limited controls and missing Data and Device controls

%3CLINGO-SUB%20id%3D%22lingo-sub-1615832%22%20slang%3D%22en-US%22%3ESecure%20Score%20API%20-%20Displaying%20limited%20controls%20and%20missing%20Data%20and%20Device%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1615832%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20i%20make%20a%20Rest%20API%20call%20to%20SecureScore%20API%2C%20i%20get%20only%2012%20to%2014%20controls.%20I%20am%20getting%20results%20for%20Identity%20controlCategory%20but%20not%20for%20Data%20%2F%20Device.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Fgraph%2Fgraph-explorer%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft%20Graph%20Explorer%3C%2FA%3E%2C%20without%20login%20in%2C%20run%20secure%20score%20API%2C%20it%20will%20execute%20the%20API%20from%20sample%20data%20and%20displays%20controlScores%20for%2070%20items.%20When%20i%20sign%20in%20using%20my%20credentials%20and%20execute%20the%20same%20API%2C%20I%20am%20getting%20results%20for%20only%2014%20controls.%20Data%2C%20Device%20and%20many%20others%20are%20missing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20idea%2C%20how%20to%20get%20all%20control%20categories%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22geekganesh_0-1598525284602.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214988iBE56C183BB2AA661%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22geekganesh_0-1598525284602.png%22%20alt%3D%22geekganesh_0-1598525284602.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1667117%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20Score%20API%20-%20Displaying%20limited%20controls%20and%20missing%20Data%20and%20Device%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1667117%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F773078%22%20target%3D%22_blank%22%3E%40geekganesh%3C%2FA%3E%26nbsp%3BI%20am%20having%20the%20same%20issue%2C%20the%20UI%20shows%20information%20about%20devices%20but%20the%20API%20is%20missing%20information%20related%20to%20devices.%20This%20is%20what%20I%20get%20after%20running%20the%20GET%20API%20call%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FSecurity%2FsecureScores%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FSecurity%2FsecureScores%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22KloudynetShashank_0-1600147112834.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218287i4B17C5821537FB20%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22KloudynetShashank_0-1600147112834.png%22%20alt%3D%22KloudynetShashank_0-1600147112834.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETotal%20score%3A%20303%2C%20my%20current%20score%3A77%2C%20where%20as%20on%20the%20UI%20its%20totally%20different%20and%20not%20matching.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22KloudynetShashank_1-1600147341252.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F218288iD5C06454E6E45EC4%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22KloudynetShashank_1-1600147341252.png%22%20alt%3D%22KloudynetShashank_1-1600147341252.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20you%20find%20a%20solution%20for%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1799706%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20Score%20API%20-%20Displaying%20limited%20controls%20and%20missing%20Data%20and%20Device%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1799706%22%20slang%3D%22en-US%22%3E%3CP%3EWe're%20experiencing%20the%20same%20issue%20when%20trying%20to%20get%20Secure%20Scores%20from%20graph%2C%20they%20just%20dont%20match%20up%20with%20the%20Secure%20Score%20GUI.%20Its%20frustrating%20as%20we're%20actively%20wanting%20to%20implement%20this%20into%20a%20service%2C%20and%20we%20can't%20because%20its%20incredibly%20unreliable.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20our%20E5%20tenancy%2C%20we%20have%20110%20controls%20on%20our%20GUI.%20On%20Graph%2C%20we're%20pulling%20less%20than%2050.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20are%20we%20doing%20wrong%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1803220%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20Score%20API%20-%20Displaying%20limited%20controls%20and%20missing%20Data%20and%20Device%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1803220%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20addition%20to%20the%20above%2C%20I've%20found%20that%20if%20running%20the%20same%20endpoint%20via%20PowerShell%20WebInvoke%2C%20i%20get%201400%2B%20controls%20returned...%20how%20is%20this%20possible.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1803318%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20Score%20API%20-%20Displaying%20limited%20controls%20and%20missing%20Data%20and%20Device%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1803318%22%20slang%3D%22en-US%22%3EHey%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECould%20you%20share%20some%20details%20on%20how%20you%20managed%20to%20get%20those%20many%20controla%20via%20Webinvoke%20%3F%20Maybe%20we%20can%20use%20that%20to%20get%20some%20additional%20details%20that%20are%20missing%20via%20graph.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1803347%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20Score%20API%20-%20Displaying%20limited%20controls%20and%20missing%20Data%20and%20Device%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1803347%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F456122%22%20target%3D%22_blank%22%3E%40KloudynetShashank%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20used%20the%20script%20from%20%3CA%20href%3D%22https%3A%2F%2Fblog.ciaops.com%2F2019%2F10%2F04%2Fcapturing-all-microsoft-secure-score-items%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.ciaops.com%2F2019%2F10%2F04%2Fcapturing-all-microsoft-secure-score-items%2F%3C%2FA%3E%3C%2FP%3E%3CP%3EOnly%20difference%20i%20can%20see%20is%20that%20it%20uses%20%22App%20Registration%22%20in%20Azure%20AD%20with%20delegated%20and%20application%20permissions%2C%20instead%20of%20our%20%22Enterprise%20Application%22.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1866931%22%20slang%3D%22en-US%22%3ERe%3A%20Secure%20Score%20API%20-%20Displaying%20limited%20controls%20and%20missing%20Data%20and%20Device%20controls%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1866931%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F164169%22%20target%3D%22_blank%22%3E%40CuratrixTechnologies%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESurprised.%20We%20are%20getting%20only%2012%20controls%20in%20our%20GUI.%20Why%20the%20number%20differ%20between%20users%3F%20We%20are%20getting%20only%2012%20in%20the%20GUI%20and%20the%20same%20in%20API.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22geekganesh_0-1604928914715.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F232317i34F171B08F18DC21%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22geekganesh_0-1604928914715.png%22%20alt%3D%22geekganesh_0-1604928914715.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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 Microsoft Graph Explorer, without login in, run secure score API, it will execute the API from sample data and displays controlScores for 70 items. When i sign in using my credentials and execute the same API, I am getting results for only 14 controls. Data, Device and many others are missing.

 

Any idea, how to get all control categories?

 

geekganesh_0-1598525284602.png

 

 

6 Replies

@geekganesh I am having the same issue, the UI shows information about devices but the API is missing information related to devices. This is what I get after running the GET API call https://graph.microsoft.com/beta/Security/secureScores 

KloudynetShashank_0-1600147112834.png

 

Total score: 303, my current score:77, where as on the UI its totally different and not matching.

KloudynetShashank_1-1600147341252.png

Let me know if you find a solution for this.

 

We're experiencing the same issue when trying to get Secure Scores from graph, they just dont match up with the Secure Score GUI. Its frustrating as we're actively wanting to implement this into a service, and we can't because its incredibly unreliable.

 

On our E5 tenancy, we have 110 controls on our GUI. On Graph, we're pulling less than 50.

 

What are we doing wrong?

In addition to the above, I've found that if running the same endpoint via PowerShell WebInvoke, i get 1400+ controls returned... how is this possible.

Hey,

Could you share some details on how you managed to get those many controla via Webinvoke ? Maybe we can use that to get some additional details that are missing via graph.

@KloudynetShashank 

 

We used the script from https://blog.ciaops.com/2019/10/04/capturing-all-microsoft-secure-score-items/

Only difference i can see is that it uses "App Registration" in Azure AD with delegated and application permissions, instead of our "Enterprise Application".

@CuratrixTechnologies 

 

Surprised. We are getting only 12 controls in our GUI. Why the number differ between users? We are getting only 12 in the GUI and the same in API.

 

geekganesh_0-1604928914715.png