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.33k stars 653 forks source link

repair function Set-IntuneDevicePrimaryUser #241

Open pheasantus opened 1 year ago

pheasantus commented 1 year ago

From $Resource = "deviceManagement/managedDevices/('$IntuneDeviceId')/users/$ref" TO $Resource = "deviceManagement/managedDevices/$IntuneDeviceId/users/$ref"