Dec 01 2016 11:04 PM
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?
Dec 01 2016 11:13 PM
Dec 02 2016 10:05 AM
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.
Dec 02 2016 12:12 PM
I think you are right and it's not possible yet to configure this setting using CSOM...adding @Vesa Juvonen so he can add his comments here
Dec 02 2016 02:26 PM
Dec 04 2016 10:22 PM
Like Richard mentioned, we released following property for CSOM in the SPO NuGet package back in August
https://dev.office.com/blogs/new-sharepoint-csom-version-released-for-Office-365-august-2016-updated... should do the trick.
Dec 04 2016 11:58 PM