We have a lot of users who were set up with a different User Principal Name (UPN) at @companyx.com, but all new users since 2020 have been using @companyy.com. When I manually change the UPN for one of these users, it seems to break all of their OneDrive links and requires resetting Okta profiles along with a few other things. What's the best approach to handle this? Should we just wait for the older users to retire?
4 Answers
Could you share how many users we're talking about? I’m curious why so many people have their files shared through OneDrive; it might be better to use something like Teams or SharePoint instead!
I went through a similar situation and had to explain to the C-level executives that changing those links would lead to them all going dead. In that case, the CSO decided it was best to just start fresh, but it really depends on how messy your current setup is.
The safest way to do this without causing issues is to add the new UPN as an alias and then set it as the primary email for those users. Just keep in mind that if you change the actual UPN, it will migrate their OneDrive to the new domain and break all the existing shared links. Definitely something to consider!
The easiest way might be to consider tools like BitTitan or ShareGate for migration. But honestly, I haven’t found a way to redirect existing shared OneDrive links to the files in a new tenant.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures