Fix Broken SharePoint and OneDrive Links After a User Name Change
Question details
Users need to resolve 404 errors for previously shared SharePoint or OneDrive links after a user's surname or account name was updated.

- Product
- SharePoint Online and OneDrive for Business
- Device & OS
- not provided
- Scenario
- A user's account name changed, causing previously shared OneDrive or SharePoint URLs containing the old name to break.
- Observed behavior
- Clicking the old shared links returns a 404 error, preventing recipients from accessing the referenced documents or folders.
Verify whether the broken links point to a standard SharePoint site or a user's personal OneDrive for Business site, as their URL structures and troubleshooting steps differ.
Update and Redirect OneDrive for Business Links
Use this solution to identify and update personal OneDrive URLs that broke because they include the user's former email address or name.
OneDrive for Business URLs are generated based on the user's principal name. When the name changes, the URL changes, causing old links to return a 404 error. Standard SharePoint links do not usually have this issue.
Look at the broken link to see if it contains '/personal/old_name_domain_com/'. This confirms it is a OneDrive for Business link tied to the old username.
In your browser's address bar, replace the old name portion of the URL with the new name format (e.g., '/personal/new_name_domain_com/') and press Enter to confirm the destination file is still active.
Since manually replacing links distributed to many people is impractical, contact your IT administrator or Microsoft Support. Ask them to configure a site redirect from the user's old personal site URL to the newly generated one.

Check for Deleted SharePoint Sites or Content
If the broken link is a standard SharePoint site URL, the 404 error is likely caused by deleted or moved content rather than the user's name change.
Manage Your Documents Effectively with WPS Office
While dealing with Microsoft SharePoint link infrastructure issues, consider using WPS Office for your document creation and management. It is a free, lightweight suite that is perfectly compatible with Microsoft Office formats, allowing seamless work offline and online.

Frequently Asked Questions
Why do OneDrive links break when a username changes?
OneDrive for Business URLs are automatically generated using the user's principal name (UPN) or email address. When the name changes, the personal site URL updates to match, causing older links pointing to the previous URL structure to return a 404 error.
Do standard SharePoint site links break after a name change?
No, standard SharePoint site URLs are independent of individual user accounts. If a standard SharePoint link breaks, it usually means the file, folder, or site was moved, renamed, or deleted, rather than being affected by a user's name change.
Can an administrator set up a redirect for old OneDrive links?
Yes, in many cases, Microsoft 365 administrators can work directly with Microsoft Support to ensure the old personal site URL redirects to the new one, keeping existing shared links functional without needing to resend them.
Is there a way to bulk update broken links shared in emails?
Unfortunately, links already sent in emails or external documents cannot be dynamically updated. A redirect must be set up on the server side, or users will need to manually request and distribute a new sharing link from the updated OneDrive site.




