Forum Discussion
OneDrive unlink a sharepoint site on its own
- May 22, 2025
Maybe you can Use OneDrive Group Policy to Prevent Auto-Unlinking.
You can apply this registry-based Group Policy to suppress auto-unsync behavior:
Policy Name: Prevent users from syncing libraries and folders OneDrive considers invalid
Registry Key:[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive]
"DisableLibraryUnlinking"=dword:00000001
This tells OneDrive not to unsync libraries automatically if they temporarily appear unavailable.
Deploy via GPO or Intune.
My answers are voluntary and without guarantee!
Hope this will help you.
That definitely sounds frustrating. I’ve seen similar reports where OneDrive unlinks SharePoint libraries if it suddenly considers them “unreachable.” This can happen due to transient connectivity issues, authentication/token refresh problems, or even changes in SharePoint site permissions. Once OneDrive flags the library as unavailable, it clears the SyncRootManager registry key, which explains what you’re seeing in the logs.
A few things worth checking:
Make sure users’ OneDrive client is fully updated (Microsoft has patched sync issues in recent builds).
Verify that site permissions and conditional access policies haven’t changed.
Consider resetting the OneDrive client on one affected machine and re-adding the SharePoint library to see if it persists.
If this keeps happening across multiple users, open a support ticket directly with Microsoft—even if your CSP says there’s no active issue, providing logs may help escalate it.
It may be an emerging bug, so gathering reproducible cases could be the fastest path to resolution.