microsoft / secmgmt-insights-connector

Power BI connector that provides insight into the current state of how Microsoft 365 is configured and whether best practices have been implemented
MIT License
13 stars 3 forks source link

Device compliance policies #79

Closed ghost closed 4 years ago

ghost commented 4 years ago

Steps to reproduce

Run the following query

SecMgmtInsights.DeviceCompliancePolicies({"TENANT-ID-REMOVED", "TENANT-ID-REMOVED"})

Expected behavior

Data for each compliance policy to be returned

Actual behavior

Information for some of the compliance policies will be returned and others will result in an error like the following

Expression.Error: The field 'passwordBlockSimple' of the record wasn't found.
Details:
    @odata.type=#microsoft.graph.androidCompliancePolicy
    roleScopeTagIds=[List]

Note this is being caused by the fact the request for device compliance policies returns multiple types. So, the code, as it stands now, needs to detect each type returned in the collection.

Environment

Windows 10. Power BI Desktop SecMgmtInsights version 1.3