![]()
In this “Disable Sync in SharePoint Document Library” article, we will learn how to disable and enable the sync button in the SharePoint Online Document Library or how to fix the sync button missing issue in the SharePoint Document Library step by step. And also, we will learn how to disable sync in user’s OneDrive for Business.
Before that, let’s recap what sync is in the SharePoint Document Library.
Understanding of Sync in SharePoint Document Library
Before getting into the main agenda of this article, let us understand the sync feature in SharePoint in the below sections:
What is sync in SharePoint Document Library?
Sync in SharePoint Online Document Library allows you to connect your SharePoint files directly to your computer using OneDrive, so you can access, edit, and manage them just like regular files on your local device. For example, if your team stores project files in a SharePoint library, syncing it will create a folder on your computer where those files are available. Any changes you make to these files — whether online or on your device — will automatically update in both locations, ensuring everyone always has the latest version.
For how to configure sync in SharePoint Document Library, read my previous article: How to Enable Sync in SharePoint Document Library
Advantages of Sync in SharePoint Online Document Library
Advantages of Sync in SharePoint Online Document Library:
- Offline Access: Access and edit SharePoint files even without an internet connection. Changes are automatically updated once you’re back online.
- Real-Time Updates: Any changes made to synced files are reflected instantly in SharePoint, ensuring everyone has the latest version.
- Improved Productivity: Files can be accessed directly from File Explorer (Windows) or Finder (Mac) without opening SharePoint in a browser.
- File Backup and Security: Synced files are stored both locally and in the cloud, reducing the risk of data loss.
- Seamless Collaboration: Multiple users can work on shared files simultaneously, improving teamwork and efficiency.
Example: If your marketing team stores campaign materials in a SharePoint library, syncing it to your device allows you to edit presentations or documents offline. Once reconnected to the internet, those updates will automatically reflect in SharePoint, ensuring the team always works with the latest content.
Disadvantages of SharePoint Document Library Sync
Though syncing feature in SharePoint comes with lots of business benefits as mentioned above, it does have disadvantages too. Below are a few notable disadvantages:
- Data Security Risks: Since synced files are stored on local devices, data can be exposed if the device is lost or stolen.
- Risk of Accidental Deletion: Deleting a file in a synced folder deletes it in SharePoint as well, which may lead to unintentional data loss. One more scenario, while you delete a file from the SharePoint document library, you will get a confirmation message before the deletion, but this feature is not available in the sync folder on your local device, though you can restore your file from the recycle bin folder, but that is an additional step.
- Limited SharePoint Features: Syncing bypasses SharePoint’s rich features like metadata, workflows, and advanced permissions, reducing efficiency in some business processes.
- Document Filtering Challenges: Large libraries with complex metadata filters may not sync properly, causing confusion and incomplete file availability. This is one of the main concerns about the usage of the Sync feature. After syncing while you are working with your file from your local device, you cannot filter your document by its property; this feature is not available in Windows File Explorer, but it is available in the SharePoint document library.
For example, you may consider this the large document library where I have multiple metadata columns, and then you can filter your document by the metadata as shown below; you cannot do this in the sync folder in Windows File Explorer.

- Performance Issues: Syncing massive libraries may result in slow performance, syncing delays, or errors.
- Document Versioning Issues: While SharePoint maintains a version history to track changes and restore previous file versions, File Explorer lacks this feature. If a user accidentally overwrites or deletes a file in the synced folder, those changes are immediately reflected in SharePoint without a backup version on their local device.
Example: If an employee syncs a SharePoint library with confidential business data on their laptop, and the laptop is lost, the risk of unauthorized access becomes a serious concern.
So, considering the above issues and challenges, many companies or users don’t prefer to use the sync functionality, though it offers advantages too, as mentioned above, so let’s learn now how to enable or disable the sync button in the SharePoint Document library.
Enable & Disable Sync in SharePoint Document Library – Using UX
We can disable or enable the sync feature in SharePoint from a couple of places; let’s discuss these one by one:
Disable sync at the SharePoint Document Library Level
If you want to disable sync in a certain document library, follow the below navigation:
- Go to your document library settings page from the gear icon as shown below:

Then, click on the “More library settings” link.

Then, click on the “Advanced settings” link.

Then, scroll down the page; there, you will see a section called “Offline and sync—Specify whether this document library can be accessed offline and synced to a computer.”

By default, allow people to sync this document library to their computers with Microsoft OneDrive and access it offline?. The selection is “Yes”; now change it to “No.”

Note:
-
The moment you change the selection for the “allow people to sync this document library to their computers with Microsoft OneDrive and access it offline?” From “Yes” to “No,” the other configuration for the offline and sync—allow people to access this document library in the browser without an internet connection? becomes disabled.
Click on the “Ok” button.
Now again open your document library; you will not see the sync button anymore as shown below:

Note
- If a user synced the SharePoint library before sync was disabled, they will see a message notifying them about the change. However, any files they had already synced to their device will remain available for them to access.

So, by now, we have learned how to disable the sync button in the specific document library. Now, in the next section, we will learn how to disable the sync button at the site level.
Disable sync at the SharePoint Site Level
If you want to stop sync functionality in all document libraries from your site (please be aware that this is the site, not the site collection; this is critical to understand) where you have multiple document libraries, then you can disable the sync feature in one go. For this, follow the below navigation.
Navigate to your site where you want to disable sync. Click on the gear icon, then click on the “Site information” link.

Then, click on the “View all site settings” link.

Then, from the “Search” section, you will find the “Search and offline availability” link; click on it.

Then, you will find a section called “Offline Client Availability—Specify whether this site should be available for offline clients.”

For the “Allow items from this site to be downloaded to offline clients?” selection, change from “Yes” to “No.” The default configuration is “Yes.”
Click on the “Ok” button.
Once you configure this setting, the Sync button will be hidden from all document libraries from your given site.
Enable & Disable Sync in SharePoint Document Library – Using PowerShell
In the above sections, we have learned how to enable and disable sync settings at the document library level as well as at the site level using the user manual navigation. Now, we will learn how to disable or enable sync settings at SharePoint Document Library and Site using the PnP PowerShell script.
Disable sync at the SharePoint Document Library Level – Using PnP
To disable the sync feature for a specific SharePoint Online Document Library using PnP PowerShell, you can adjust the library’s offline client availability settings. Here’s how:
# Install PnP PowerShell Module (if not already installed)
if (-not (Get-Module -ListAvailable -Name "PnP.PowerShell")) {
Install-Module -Name PnP.PowerShell -Force
}
# Define variables
$SiteURL = "Your SharePoint Online Site URL"
$LibraryName = "YourLibraryName"
# Connect to SharePoint Online
Connect-PnPOnline -Url $SiteURL -Interactive
# Disable Sync for the Document Library
$List = Get-PnPList -Identity $LibraryName
$List.ExcludeFromOfflineClient = $True
$List.Update()
# Commit the changes
Invoke-PnPQuery
Write-Host "Sync has been successfully disabled for the '$LibraryName' library at $SiteURL" -ForegroundColor Green
Disable sync at the SharePoint Site Level – using PnP
Using the below PnP PowerShell script, we can disable the sync feature from the specific site in SharePoint:
# Parameters - Specify your SharePoint Online site URL $SiteURL = "Your SharePoint Site URL" # Connect to SharePoint Online site Connect-PnPOnline -Url $SiteURL -Interactive # Get the SharePoint Online site (Web) object $Web = Get-PnPWeb -Includes ExcludeFromOfflineClient # Disable "Allow items from this site to be downloaded to offline clients" $web.ExcludeFromOfflineClient = $True $web.Update() Invoke-PnPQuery Write-Host "Sync has been successfully disabled at the site level for '$SiteURL'" -ForegroundColor Green
Important Notes (for both the scripts):
- Ensure you have the PnP PowerShell module installed before running the script.
- Users who synced the library before sync was disabled will receive a notification, but previously synced files will remain accessible on their devices.
- Always test the script in a development or test environment before applying changes in production.
How to Disable Sync in OneDrive?
In this section, we will learn how to disable sync in the user’s OneDrive. We also can disable the sync feature for the user’s OneDrive for Business. If you disable this configuration, the user will not be able to access files from the local device; they can only work with OneDrive from the browser. So, let’s learn how to configure this.
Click on the app launcher menu.
Then, click on the “Admin” menu.

Then, you will get the “Microsoft 365 admin center” portal home page.

Note:
-
Earlier, for OneDrive admin, there was a separate link, but now this has been part of the SharePoint Online admin center portal.
Click on the “SharePoint” link from the left side pane admin centres section.
Then, you will get OneDrive sync link, click on that.
Now for the “Sync—Use these settings to control syncing of files in OneDrive and SharePoint,” uncheck the “Show the sync button on the OneDrive website.
By default this option is checked or enabled.

Click on the “Save” button.
By the way, in this sync configuration, other options are as below:
Allow syncing only on computers joined to specific domains: Here you need to enter each Active Directory domain as a GUID on a new line. By default, this will be in disabled mode.

Block upload of specific file types: Here you need to enter each extension on its line. Do not include spaces, periods, or any other punctuation. By default, this will be in disabled mode.

How to Fix Sync Button Missing in a Document Library Issue?
In the above sections, we have learned how to disable or enable the sync feature in SharePoint Online at the document library level and site level using both approaches, like user manual navigation and the PnP PowerShell approach.
So, by now you know how to control this setting. So, if you face an issue like the document library sync button is missing in your site, then you need to verify these settings from your document library level as well as at the site level as shown above.
Other things you might check, if the above solution doesn’t work.
Other Troubleshooting: How to Fix the Sync Button Missing in a SharePoint Online Document Library
If the Sync button is missing from your SharePoint Online document library, try these troubleshooting steps:
1. Check Permissions
- Ensure you have at least Edit permission on the SharePoint site.
- Users without appropriate permissions, or those lacking access to all folders in the library, won’t see the Sync button.
2. Switch the Document Library View
- In your SharePoint library, try switching to the Classic View if you’re currently in the Modern View.
- Sometimes the Sync button may appear in one view but not the other.
3. Disable Conflicting Add-ons
- Certain browser extensions or third-party add-ons can interfere with the Sync button.
- Temporarily disable any recently added extensions and check if the Sync button reappears.
4. Ensure OneDrive Sync Client is Installed and Updated
- The Sync button relies on the OneDrive Sync Client.
- Ensure OneDrive is installed, signed in with your Microsoft 365 account, and updated to the latest version.
5. Try a Different Browser
- If the Sync button is missing in one browser, try accessing SharePoint in a different browser to rule out browser-specific issues.
6. Check if the Library Exceeds Sync Limits
- SharePoint document libraries with:
- More than 300,000 items in total may face sync issues.
- Any individual folder exceeding 100,000 files can cause performance issues.
7. Verify Custom Scripts Setting (For Classic Sites)
- For older SharePoint sites, disabling custom scripts can affect sync functionality.
- To enable custom scripts:
Recommended Final Step:
If none of these solutions work, try resetting the OneDrive Sync Client and re-syncing the library from scratch.
By applying these steps, you should be able to fix the missing Sync button issue.
Summary: Enable or Disable Sync in SharePoint Online
Thus, in this article, we have learned how to disable or enable sync in SharePoint Online document libraries, SharePoint Online sites, and OneDrive for Business using various methods. We explored PowerShell scripts with PnP PowerShell for both document library-level and site-level sync control, along with key settings available in the SharePoint Admin Center and OneDrive Admin Center.
Additionally, we covered troubleshooting techniques for resolving the missing Sync button issue, including checking permissions, browser settings, OneDrive installation, and ensuring appropriate admin configurations. By following these steps, you can effectively manage sync settings to enhance security, improve performance, and ensure better control over your SharePoint environment.
Frequently Asked Questions (FAQs) – Enable or Disable Sync in SharePoint Online
Here are the top 10 frequently asked questions about enabling, disabling, and troubleshooting the sync feature in SharePoint Online, along with detailed answers:
1. How do I enable the sync feature for a SharePoint Online document library?
To enable sync for a SharePoint Online document library:
- Go to the Document Library Settings.
- Under Advanced Settings, find the option “Allow items from this document library to be downloaded to offline clients?”
- Select Yes and click OK to save the changes.
Additionally, ensure that sync is enabled in the SharePoint Admin Center under Settings → OneDrive → Sync.
2. How can I disable the sync feature for a specific SharePoint Online document library using PowerShell?
To disable sync using PnP PowerShell, use the following script:
This command prevents users from syncing the specified document library to their devices.
3. How can I disable sync at the SharePoint Online site level?
To disable sync for an entire SharePoint site using PnP PowerShell, use this script:
This setting blocks all document libraries within the site from being synced.
4. What happens to files that were synced before disabling sync?
If a user synced files from a SharePoint document library before sync was disabled, they will still have access to those files on their local device. However, they will receive a notification stating that sync is no longer available. Any future changes in SharePoint will no longer sync to their device.
5. Why is the Sync button missing in my SharePoint Online document library?
The Sync button may be missing due to several reasons:
- Insufficient Permissions: Ensure you have at least Edit permission on the site.
- Sync Settings in Admin Center: Verify that sync is enabled in the SharePoint Admin Center under OneDrive → Sync.
- Library Settings Issue: Check the Offline Client Availability setting in Library Settings → Advanced Settings.
- Browser or Add-on Conflict: Try disabling extensions or switching browsers.
- Outdated OneDrive Client: Ensure your OneDrive Sync Client is installed and updated.
6. Can I restrict OneDrive sync to domain-joined devices only?
Yes, you can restrict syncing to devices joined to specific domains.
- Go to the OneDrive Admin Center.
- Navigate to Sync settings.
- Under Sync Client Restrictions, enable “Allow syncing only on PCs joined to specific domains” and enter the required domain GUID.
This ensures only trusted devices can sync SharePoint content.
7. What permissions are required to enable or disable sync in SharePoint Online?
To modify sync settings, you must have:
- Site Owner or Full Control permissions to change settings at the document library level.
- SharePoint Administrator or Global Administrator permissions to configure sync settings in the SharePoint Admin Center.
8. Can I disable sync for OneDrive for Business accounts?
Yes, you can block OneDrive sync for personal accounts via Group Policy (Windows) or Intune (Microsoft Endpoint Manager).
- In Group Policy Editor, go to:
Computer Configuration → Administrative Templates → OneDrive - Enable the policy “Prevent users from syncing personal OneDrive accounts”.
9. What is the difference between disabling sync at the document library level vs. site level?
- Library Level: Disabling sync at the library level prevents only that specific document library from being synced.
- Site Level: Disabling sync at the site level prevents all document libraries within that site from being synced.
For better control, disabling sync at the site level is recommended if you want to block sync for multiple libraries under a single site.
10. How can I resolve sync errors like ‘We couldn’t sync this library’ or ‘OneDrive isn’t signed in’?
To resolve common sync errors:
- Re-sign in to the OneDrive client.
- Unlink and re-link OneDrive by going to OneDrive settings and clicking Unlink this PC, then reconnecting.
- Clear sync cache by resetting the OneDrive client:
- Ensure you’re not exceeding the 300,000-item limit or the 100,000 files per folder limit in SharePoint libraries.