79667871

Date: 2025-06-16 15:35:40
Score: 3
Natty:
Report link

You could use MgGraph instead. Like this:

$userId = "[email protected]"
Invoke-MgGraphRequest -Method PATCH -Uri "https://graph.microsoft.com/v1.0/users/$userId" -Body @{onPremisesImmutableId = $null}

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: m.sokol