SharePoint Document Issues

Fix Broken SharePoint and OneDrive Links After a User Name Change

Emma BrownEmma Brown Nov 2, 2026 871 views

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.

How to Fix Broken SharePoint and OneDrive Links After a User Name Change
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.
Before you start

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.

Solution 1Recommended

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.

1
Check the broken URL format

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.

2
Manually test the new URL

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.

3
Set up a site redirect

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.

Update and Redirect OneDrive for Business Links
Administrator Action Required: Only Microsoft 365 administrators or Microsoft Support can implement server-side redirects for personal OneDrive sites.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Built-in cloud storage integration for easy, reliable sharing and collaboration.Lightweight design ensuring fast installation and smooth operation on any device.Familiar, intuitive user interface that requires no learning curve to master.
microsoft office alternative - wps office

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.