I'm looking for a way to disable the SharePoint sync button that lets users connect the library to their OneDrive, allowing them to access files through File Explorer. We keep running into issues where users are syncing it or using shortcuts, leading to errors and failed syncs. We would prefer that everyone uses the online version instead of syncing files. Is there a way to turn off the sync button as well as remove the shortcuts? We're fully using SharePoint Online, and although OneDrive is still necessary for backing up local files, I see options to hide the sync button or disable offline viewing in the organizational settings. Has anyone successfully done this, and what was the outcome?
4 Answers
Honestly, even if you find a workaround, it might not last long. Instead of trying to disable the sync option, it might be better to train your users on how to sync files correctly. Those shortcuts can be a real pain too!
While others have already discussed disabling sync, I think it’s worth mentioning the need for users to access files in a file manager style. It’s often faster than using the online interface. Have you considered using third-party programs that display SharePoint files online? We use MacroView at my workplace, and it provides a file manager view without worrying about sync issues. They even offer a free trial!
You can definitely disable the Sync button and just the OneDrive sync option. However, it’s essential to address the underlying sync issues in the OneDrive app, which shouldn’t happen if users know how to let it sync properly and stay informed on any errors.
If you're trying to get rid of sync shortcuts that have already been made, you can utilize the Graph API to remove them, although the documentation isn’t very robust. I can share my notes on this if you'd like.

I actually believe shortcuts are more reliable than synced folders! They follow users across machines without needing adjustments. The downside is you can't shortcut an entire root directory, just folders within it. But yeah, if I had to tell users to abandon File Explorer for SharePoint online, I’d be in trouble!