Forum Discussion

Ivan54's avatar
Ivan54
Bronze Contributor
Dec 02, 2016

Disable OneDrive Offline Sync for SharePoint Libraries

Is there a way to keep offline sync enabled for personal OneDrive for Business libraries, but disable it generally for TeamSite libraries, and possibly enable it only for specific libraries?

Or do you have any other suggestion to limit the possible attack scope from Ransomware regarding SharePoint Libraries?

    • Deleted's avatar
      Deleted

      Last time my team looked at this, there was no API (PowerShell, CSOM, etc.) that would allow you to do this.  We had to write some custom code to mimic the get/post requests for the advanced settings page of a library in order to turn off "offline client availability".

       

      Since our users could turn it back on at any point, we have to run our utility continuously in order to keep it disabled.

      • Richard Bourke's avatar
        Richard Bourke
        Iron Contributor
        The ExcludeFromOfflineClient property is available via the API now, as of version 16.1.5715.1200 I believe. If users can re-enable the setting you will still have to disable it frequently unfortunately.

Resources