-
Notifications
You must be signed in to change notification settings - Fork 213
Description
Describe the bug
If I want to update a primary user of a device using the Update-MgDeviceManagementManagedDevice command, I get an error message stating the property 'businessPhones' does not exist on type 'microsoft.management.services.api.user'.
To Reproduce
Input:
$user = Get-MgUser -UserId "00000"
Update-MgDeviceManagementManagedDevice -ManagedDeviceId "00000" -Users $user
Output:
The property 'businessPhones' does not exist on type 'microsoft.management.services.api.user'. Make sure to only use property names that are defined by the type. Status: 400 (BadRequest)
Expected behaviour
The primary user should be successfully changed.
Module Version
Newest, currently aviable version.
Additional context
I already created a Service request with the API owner as required in Issue 1675, and they told me that it is on your side to fix the PowerShell SDK. On the API side everything is working fine. Please don't close the issue again!
There is also an answer by another Microsoft employee related to this issue: https://learn.microsoft.com/en-us/answers/questions/1506439/changing-primary-user-of-a-device-in-intune