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

Functions that require Intune #88

Closed ghost closed 4 years ago

ghost commented 4 years ago

Steps to reproduce

Invoke any function against a customer without Microsoft Intune that is dependent on the customer having it. Such as the following one

SecMgmtInsights.ManagedDevices()

Expected behavior

The resulting table to be empty with no data

Actual behavior

Expression.Error: The field '@odata.context' of the record wasn't found.
Details:
    Reason=Access denied
    Message=Have you verified the expected permissions are in place?
    Detail=[Record]

This happening because Microsoft Graph will return an error instead of an empty set for Microsoft Intune operations when the customer does not have an entitlement for the service.

Environment

Windows 10 Power BI Desktop SecMgmtInsights version 1.3