microsoftgraph / microsoftgraph/entra-powershell
Not possible to set user's properties to the null value using Set-EntraUser
Open
@KenitoInc is already working on this.
Since Aug 7, 2025.
dependency:graph-api-backend
P1
ToTriage
- Dominant language
- PowerShell
- Stars
- 213
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.