Microsoft Graph and Client ID’s

Recently I have been working in PowerShell to access Microsoft Graph, primarily to interact with Intune. My starting point has been the Samples provided by Microsoft here: https://github.com/microsoftgraph/powershell-intune-samples while extending the samples to modify the AAD user objects I started getting Access Denied even with a Global Admin account, really weird right, well it comes down to the $clientid variable in the samples which are for the “Microsoft Intune PowerShell” Service Principal, I needed to use the “Microsoft Azure PowerShell” Service Principal. … Continue reading Microsoft Graph and Client ID’s