This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.36k
stars
656
forks
source link
Use SPN to get /intuneBrandingProfiles result in (401) Unauthorized. #121
Have created a SPN with permission to rest api for devicemanagment. I am using powershell and are able to get and update "deviceconfiguration", but trying to list intunebrandingprofiles result in Unauthorized. Have given the SPN "DeviceManagementApps.ReadWrite.All" . Endpoint : "https://graph.microsoft.com/beta/deviceManagement/intuneBrandingProfiles".
Also the tenant has Intune licenses , but also Microsofft 365 E3.
Kind regards AV
Have created a SPN with permission to rest api for devicemanagment. I am using powershell and are able to get and update "deviceconfiguration", but trying to list intunebrandingprofiles result in Unauthorized. Have given the SPN "DeviceManagementApps.ReadWrite.All" . Endpoint : "https://graph.microsoft.com/beta/deviceManagement/intuneBrandingProfiles". Also the tenant has Intune licenses , but also Microsofft 365 E3. Kind regards AV