Can Update-MgUser Now Update Primary Email Addresses?
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
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
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.
Reply to this answer
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.
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.