How to Disable Sync in SharePoint / Teams Site

Option 1: Disable sync at the library level

If you want to generally allow synchronization in your environment, but restrict specific libraries from being synchronized, you can disable sync locally, for a given document library. Here is how to do this:

  1. Navigate to the library where you want to disable sync, then click Gear Icon > Library SettingsHowtodisablesyncsharepointonedrive2
  2. Click on Advanced SettingsHowtodisablesyncsharepointonedrive3
  3. Scroll down to the middle of the page, and under Offline Client Availability, select No (default is Yes)disable sync in SharePoint and OneDrive
  4. Click OK at the bottom
  5. You will now notice that the library lacks a Sync ButtonHowtodisablesyncsharepointonedrive6
  6. And by the way, if the user synchronized this library before sync-de-activation, he/she will see the following message pop-up on their screens. They will still retain the data they synchronized previously thoughdisable sync in SharePoint and OneDrive

Option 2: Disable sync at the Site level

You can go one step further and disable sync for a given site. Very important to note, I am talking about sites and not site collections here. Click here to understand the difference. This trick might be useful if I am a Site Owner and have several document libraries on my site.

  1. Navigate to the site where you want to disable synchronization. Click Gear Icon > Site InformationHowtodisablesyncsharepointonedrive7
  2. Click View all site settings. If on the classic wiki page, you can click Gear Icon > Site Settings instead of these two steps.Howtodisablesyncsharepointonedrive8
  3. Click on Search and offline availability under Search
  4. Under Offline Client Availability select No (default is Yes)disable sync in SharePoint and OneDrive
  5. Click OK at the bottom of the page
  6. Just like with Library changes above, you will see the Sync button disappear from the library (or all libraries located on this site).

How to disable sync of user’s OneDrive

You can also prevent synchronization of the user’s own OneDrive for Business. This way users won’t be able to access their files unless they log in to OneDrive via a website. To do this:

  1. App Launcher > AdminHowtodisablesyncsharepointonedrive12
  2. Navigate to OneDrive Admin Center
  3. Click Sync, then uncheck Show the Sync button on the OneDrive website checkbox (it is checked by default), then click Savedisable sync in SharePoint and OneDrive
  4. Wait a few hours (it takes a while to propagate through tenant)
  5. You will now notice that the Sync button in the user’s OneDrive has disappeared

Ref: How to disable sync in SharePoint and OneDrive | SharePoint Maven