microsoftgraph / powershell-intune-samples

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

Closed AtleVa closed 3 years ago

AtleVa commented 5 years ago

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

davefalkus commented 3 years ago

This is has been closed for housekeeping, please re-open if issue still exists