microsoftgraph / microsoftgraph/entra-powershell

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

Open
#439 3 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.