Forum Discussion
Ivan54
Dec 02, 2016Bronze Contributor
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 y...
Richard Bourke
Dec 02, 2016Iron 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.
VesaJuvonen
Microsoft
Dec 05, 2016Like Richard mentioned, we released following property for CSOM in the SPO NuGet package back in August
- public property Microsoft.SharePoint.Client.List.ExcludeFromOfflineClient
https://dev.office.com/blogs/new-sharepoint-csom-version-released-for-Office-365-august-2016-updated. That should do the trick.
- Dec 05, 2016Thanks for the update :-). I will try to find some time to maybe publish a small PS snippet to use this new property