Can Update-MgUser Now Update Primary Email Addresses?

July 5, 2025 3 answers
Asked by CuriousNinja42
I noticed while cleaning up some UPN prefixes for a client that the Update-MgUser command is also updating the primary email address of my test lab user. I thought I would need to use Exchange Online (EXO) to do this. Is it now automatic? How long has this been the case?

Answers

DocReader
You might want to check out Microsoftโ€™s documentation on this. Depending on your situation, changes to UPN usually result in updates to email addresses or proxy addresses as well. Hereโ€™s a link for more info: https://learn.microsoft.com/en-us/troubleshoot/en...
Reply to this answer
ExplainerExtraordinaire
It seems like the behavior you're seeing is tied to a change in EntraID, not just the PowerShell cmdlet. When you change the UPN domain manually, it also updates the primary SMTP address automatically now.

Clarifier88: Exactly! It updates email and SIP addresses too. I canโ€™t recall when it exactly changed, but it seems it's more to do with the IdP rather than the API method.

Reply to this answer
TechGuru99
Looks like the Graph API is working wonders! It's definitely exceeding a lot of expectations with this update.

OptimisticDreamer: Haha, right? We can always hope!

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions