How to disable sync option on document library?

%3CLINGO-SUB%20id%3D%22lingo-sub-850707%22%20slang%3D%22en-US%22%3EHow%20to%20disable%20sync%20option%20on%20document%20library%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-850707%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20using%20SharePoint%20Online%20from%20O365.%20We%20are%20using%20modern%20teamsites%20with%20modern%20document%20libraries.%20How%20can%20I%20disable%20the%20sync%20option%20on%20a%20document%20library%20programmatically%3F%20Is%20this%20possible%20in%20Office%20Dev%20Pnp%20Template%20Provisioning%20or%20in%20Office%20Dev%20PnP%20Powershell%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-850707%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-860895%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20disable%20sync%20option%20on%20document%20library%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-860895%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F380041%22%20target%3D%22_blank%22%3E%40Dreamsat%3C%2FA%3E%26nbsp%3BYou%20can%20do%20it%20via%20PowerShell%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.sharepointdiary.com%2F2017%2F08%2Fdisable-sync-button-in-sharepoint-online.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.sharepointdiary.com%2F2017%2F08%2Fdisable-sync-button-in-sharepoint-online.html%3C%2FA%3E%26nbsp%3Band%20read%20this%20also%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSharePoint%2FDisable-OneDrive-Offline-Sync-for-SharePoint-Libraries%2Fm-p%2F33531%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSharePoint%2FDisable-OneDrive-Offline-Sync-for-SharePoint-Libraries%2Fm-p%2F33531%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am using SharePoint Online from O365. We are using modern teamsites with modern document libraries. How can I disable the sync option on a document library programmatically? Is this possible in Office Dev Pnp Template Provisioning or in Office Dev PnP Powershell?

1 Reply