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?
3 Answers
Looks like the Graph API is working wonders! It's definitely exceeding a lot of expectations with this update.
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.
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.
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...
Haha, right? We can always hope!