Describe the bug
The Update-MgUser cmdlet cannot clear the onPremisesImmutableId property.
To Reproduce
Execute a command such as:
Update-MgUser -UserId [UserId] -OnPremisesImmutableId $null
Expected behavior
The property should clear.
The payload generated by Update-MgUser is:
{"onPremisesImmutableId": ""}
It should be:
{"onPremisesImmutableId":null}
Module Version
2.11.1
Environment Data
Name Value
---- -----
PSVersion 5.1.20348.2110
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.2110
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Describe the bug
The Update-MgUser cmdlet cannot clear the onPremisesImmutableId property.
To Reproduce
Execute a command such as:
Update-MgUser -UserId [UserId] -OnPremisesImmutableId $nullExpected behavior
The property should clear.
The payload generated by Update-MgUser is:
{"onPremisesImmutableId": ""}It should be:
{"onPremisesImmutableId":null}Module Version
2.11.1
Environment Data