Forum Discussion

pischta's avatar
pischta
Copper Contributor
May 22, 2025
Solved

OnPremisesImmutableId field update

Hi, when I update the OnPremisesImmutableId with Update-MgUser -UserId "<user id>" -OnPremisesImmutableId '<base64 coded id>' if it contains '/', that character doesn't stored. Other "interesti...
  • VasilMichev's avatar
    May 23, 2025

    I don't seem to have issues with that, which version of the module are you on? Make sure you enclose the value in quotes.

    For the second query, that's the expected behavior, as Get-MgUser only returns a limited set of properties by default, and OnPremisesImmutableId is not one of them. You have to specifically request it.

Resources