Forum Discussion
Hide spesific folder from OneDrive synk all users
We have a cloud application that uses the user's OneDrive while they are working with documents. These files are stored in a specific folder and are removed when the user checks in the files through the application. However, it seems the application does not handle users checking in files while they are syncing.
I’ve looked into policies and settings in SharePoint Online and Intune, but I haven’t found a way to exclude the folder for all users. The only solution so far seems to be guiding users to do this manually.
Is there really no other way to achieve this?
1 Reply
- NikolinoDEGold Contributor
OneDrive does not have a native “exclude subfolder from sync” policy. The sync client only supports:
- Excluding certain file types/extensions (Block syncing of specific file types via Group Policy/Intune).
- Preventing specific folders/libraries from being synced at all (like excluding a whole document library in SharePoint/Teams).
- Controlling known folder move (Desktop, Documents, Pictures).
But not: “exclude this one subfolder inside OneDrive for all users.” That’s why you only find manual guidance (right-click → “Choose folders to sync” in OneDrive client).
if I may recommend…
if your app must write to OneDrive, use the file type block policy to prevent those temp/working files from syncing. If you control the app, better to move its working directory outside of OneDrive altogether.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.