Does SharePoint Document ID Preserve Links After Moving Files?
Question details
The user wants to know if SharePoint Document IDs maintain persistent, unbroken links after files are moved to different folders, sites, or site collections.

- Product
- SharePoint
- Device & OS
- not provided
- Scenario
- Reorganizing document libraries or moving files across SharePoint sites while needing to ensure previously shared links remain active for users.
- Observed behavior
- Links to moved files may break unless the Document ID Service is properly configured to provide persistent redirection URLs.
Ensure you have Site Collection Administrator privileges in SharePoint, as enabling and configuring the Document ID Service requires administrative access.
Enable Document ID Service for Persistent Links
Activating this feature ensures that files receive a unique Document ID URL that survives folder and site moves within the same site collection.
The Document ID Service assigns a unique identifier to every document in the site collection. Instead of linking to the file's folder path, SharePoint provides a special redirection URL (DocIdRedir.aspx) that always locates the file, regardless of where it is moved within the supported scope.
Log in to your SharePoint site as an administrator, click the gear icon in the top right corner, and select 'Site information' followed by 'View all site settings'.
Under the 'Site Collection Administration' section, click on 'Site collection features'.
Scroll down to locate 'Document ID Service' and click the 'Activate' button next to it. Wait for SharePoint to process this request.
When sharing documents, open the document properties and copy the specific 'Document ID' link provided, rather than copying the address bar URL.

Retrieve URLs for Multiple Moved Documents
When moving batches of files, you must ensure each file's unique Document ID URL is retrieved to maintain persistent links.
Boost Your Document Productivity with WPS Office
While SharePoint helps manage your files online, you need a robust and efficient desktop suite to open, edit, and collaborate on those documents. WPS Office is a highly compatible, lightweight, and free alternative to Microsoft Office that easily handles your enterprise files.
- 1. Download and Install: Visit the official WPS website to download the free installation package for your Windows, Mac, or Linux device.
- 2. Open Downloaded SharePoint Files: Download your files from SharePoint and double-click them to open instantly in WPS Office without formatting loss.
- 3. Edit and Save Seamlessly: Make your edits using the comprehensive toolset, save your work in standard Microsoft formats, and upload back to SharePoint effortlessly.

Frequently Asked Questions
Why did my SharePoint link break after moving a file?
If you shared the direct URL path (which includes the folder names) instead of the Document ID URL, the link breaks because the file's path has changed. Always use the DocIdRedir.aspx link provided by the Document ID Service to prevent this.
How long does it take for Document IDs to be assigned after activation?
Once the Document ID Service is activated, a background timer job must run to assign IDs to existing files. It may take anywhere from a few hours to 24 hours for all existing documents in the site collection to receive their unique IDs.
Can I manually choose the Document ID format?
Yes. Site Collection Administrators can customize the prefix of the Document IDs by going to Site Settings > Document ID settings. You can set a custom prefix of 4 to 12 characters to help identify documents belonging to specific sites.
Do Document ID links work for external guests?
Document ID links will resolve for external guests provided the guest user has been granted the appropriate permissions to view the file in its current SharePoint location.




