entra-powershell icon indicating copy to clipboard operation
entra-powershell copied to clipboard

Not possible to set user's properties to the null value using Set-EntraUser

Open alexandair opened this issue 1 year ago • 3 comments

For example, Set-EntraUser -ObjectId $diegoId -AgeGroup $null fails.

$null is converted to:

{
  "ageGroup": ""
}

instead of:

{
  "ageGroup": null
}

I assume we will have the same problem with other Entra commands.

alexandair avatar Feb 23 '24 12:02 alexandair

@alexandair Thanks for raising the bug we are looking into it.

snehalkotwal avatar Feb 27 '24 05:02 snehalkotwal

This issue is present in the SDK as show image @SteveMutungi254 please advise.

rtintor avatar Mar 19 '24 17:03 rtintor

This issue is present in the SDK as show image @SteveMutungi254 please advise.

We should use the Graph API and perform customization as needed.

SteveMutungi254 avatar Mar 21 '24 15:03 SteveMutungi254