Hide SharePoint Sync Button
MS Link
Microsoft SharePoint Online document libraries include a âSyncâ button that allows users to sync files to their local OneDrive. While useful in some cases, many organizationsâincluding those focused on compliance or governanceâprefer to disable this option in specific site collections or libraries.
CODGridâs SPFx Hide Sync Button Extension solves this challenge by allowing organizations to hide the Sync button using a site-scoped, lightweight SharePoint Framework (SPFx) Application Customizer.
Hides the âSyncâ button on modern SharePoint libraries
Applies only to specific site collections
Requires no tenant-wide deployment
Built with SPFx 1.18.1, compatible with Node.js 18.x
Ideal for compliance, DLP, and information governance
The solution uses an SPFx Application Customizer extension to inject lightweight CSS that hides the Sync button from the document library toolbar. It does not impact site performance or user experience.
Â
đŒ Financial institutions that restrict local file sync
đ„ Healthcare providers under HIPAA compliance
đïž Government organizations with strict DLP policies
đ Project-based teams where syncing is unnecessary
1. Deploy the App Package
Upload the
.sppkg
file to your Site Collection App Catalog (not the Tenant App Catalog).2. Add the App to Your Site
Go to your Site Contents > Add an app, and install âHide Sync Button Extensionâ.
3. Refresh Your Library
The Sync button will now be hidden from the document library toolbar on modern SharePoint pages.
SharePoint Online
Modern document libraries
Node.js v18.x for local development (if customizing)
Site Collection App Catalog enabled
Need help deploying it or want it tailored to your governance policies?
đ§ Contact CODGrid for support, custom rules, or bulk deployments across sites.
At CODGrid, we value your privacy and are committed to protecting your personal information. This page outlines how we handle data in relation to the Hide Sync Button SPFx Extension and your interaction with this documentation page.
The Hide Sync Button Extension is a client-side SharePoint Framework (SPFx) solution. It:
Does not collect, store, or transmit any personal data.
Operates entirely within your SharePoint environment.
Injects CSS to visually hide the Sync button â no tracking, cookies, or telemetry involved.
Our documentation site may use standard web analytics tools (e.g., Google Analytics) to improve performance and understand general usage patterns. These tools:
Do not track user-specific data related to SharePoint
Respect user anonymity and cookie consent preferences
Help us improve content and support
If you submit a form or contact us for support or customization:
We collect only the information you provide (e.g., name, email)
Your data is not shared with third parties and is used solely for communication purposes
This page may include links to downloadable files or Microsoftâs documentation. We are not responsible for the content or privacy practices of external sites
For questions about this privacy policy or our SPFx solutions, please contact us at:
đ§ support@codgrid.com