logo
search
SharePoint Document Issues

How to Synchronize SharePoint Document Libraries Between Two Sites

Chanuka GeekiyanageChanuka Geekiyanage Oct 9, 2026 868 views

Question details

The user needs to automatically keep files and folders synchronized across document libraries located on two different SharePoint sites.

How to Synchronize SharePoint Document Libraries Between Two Sites
Product
SharePoint Online
Device & OS
not provided
Scenario
Managing documents across multiple SharePoint sites and ensuring that updates in one library are reflected in another.
Observed behavior
SharePoint Online lacks a native two-way synchronization feature, requiring a custom automated workflow to handle additions, changes, and deletions.
Before you start

Ensure you have permission to create Power Automate flows and verify that you possess edit or owner access to both SharePoint sites you intend to synchronize.

Solution 1Recommended

Use Power Automate for SharePoint Library Synchronization

Since SharePoint lacks built-in two-way synchronization, Microsoft Power Automate is the recommended tool to sync file additions and modifications between sites.

Power Automate can detect when a file is added or changed in one SharePoint site and automatically replicate that action in another site.

Setting up a basic one-way sync is straightforward, but achieving a true two-way sync requires careful workflow design to prevent infinite loops (e.g., Site A updates Site B, which triggers an update back to Site A).

1
Create a new automated cloud flow

Log into Microsoft Power Automate, click on 'Create' from the left menu, and select 'Automated cloud flow'.

2
Set the SharePoint trigger

Search for and select the trigger named 'When a file is created or modified (properties only)'. Enter the Site Address and Library Name of your primary SharePoint site.

3
Retrieve the file content

Add a new step and search for the 'Get file content' SharePoint action. Use the 'Identifier' dynamic content from the trigger to specify which file's content to retrieve.

4
Replicate the file in the second site

Add a 'Create file' action. Enter the Site Address and Folder Path of your second SharePoint site. Use dynamic content to map the File Name and File Content from the previous steps.

Use Power Automate for SharePoint Library Synchronization
Advanced Synchronization Requirements: For complex two-way synchronization involving folder structures or file deletions, it is highly recommended to consult the Microsoft Power Platform Community, as advanced logic and condition loops are required.
Free Microsoft Office alternative

Streamline Your Document Workflows with WPS Office

While setting up multi-site synchronization in SharePoint can be complex, handling daily document tasks shouldn't be. WPS Office is a free, lightweight alternative to Microsoft Office that offers a familiar interface, high compatibility, and built-in cloud sharing options to make collaboration simple.

Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx)Built-in cloud collaboration tools that bypass the need for complex multi-site syncingLightweight installation with blazing-fast launch speedsFamiliar, tabbed user interface for quick navigation and a seamless migration
microsoft office alternative - wps office

Frequently Asked Questions

Does SharePoint Online have a native two-way sync tool?

No, SharePoint Online does not offer a built-in, out-of-the-box two-way synchronization feature for linking document libraries on different sites. You must use Microsoft Power Automate or third-party synchronization tools.

Can I use OneDrive to sync two distinct SharePoint libraries together?

OneDrive allows you to sync SharePoint libraries down to your local computer's file explorer. However, it does not automatically sync files between two distinct SharePoint cloud sites directly.

How do I prevent infinite loops when setting up a two-way sync in Power Automate?

To prevent infinite loops, add a 'Condition' check in your flow to verify the 'Modified By' property. If the modifier is the designated service account running the flow, configure the flow to terminate without making further updates.