How to Disable OneDrive Sync and Enforce Online-Only Access in Microsoft 365
Question details
The administrator needs to restrict OneDrive and SharePoint access to online-only by disabling desktop client synchronization, typically to secure data on unmanaged or mobile devices.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- An administrator wants to secure company data by preventing local file downloads, forcing users to work exclusively through the OneDrive Online web interface.
- Observed behavior
- Currently, users can synchronize files locally using the OneDrive desktop client. The goal is to enforce online-only access without completely blocking user productivity.
Ensure you have Global Administrator or Conditional Access Administrator privileges in the Microsoft Entra admin center, and have designated a test user account to safely verify the policy before a broad rollout.
Configure a Conditional Access Policy in Microsoft Entra Admin Center
Create a targeted Conditional Access policy to block desktop client synchronization for SharePoint and OneDrive.
Conditional Access policies allow administrators to set granular rules for how users access company resources. By targeting the Office 365 SharePoint Online cloud app, you can restrict desktop and mobile clients from syncing files while still allowing access via a web browser.
Sign in to the Microsoft Entra admin center with at least Conditional Access Administrator credentials.
Navigate to Protection > Conditional Access > Policies. Click on 'New policy' to begin configuration.
Enter a descriptive name for your policy. Under 'Users', select the specific groups or test users you wish to apply the restrictions to.
Under 'Target resources' (or Cloud apps), choose 'Select apps' and search for 'Office 365 SharePoint Online'. Selecting SharePoint also covers OneDrive for Business.
Under 'Conditions', select 'Client apps'. Configure it to apply only to 'Mobile apps and desktop clients' so browser access remains unaffected.
Under 'Access controls' > 'Session', check 'Use app enforced restrictions'. This limits access to a browser-only, non-downloadable state for unmanaged devices.
Toggle the policy state to 'Report-only' initially, or apply it strictly to a designated test user account to verify that client sync is blocked without disrupting necessary online web access.

Enhance Your Document Productivity with WPS Office
While configuring Microsoft 365 network access policies requires specialized IT administration, creating and editing your daily documents shouldn't be complicated or expensive. WPS Office is a highly compatible, lightweight, and free alternative to Microsoft Office that supports secure local and cloud-based document management for your team.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the lightweight installer to quickly set up the suite on your computer.
- 3. Open Your Documents: Instantly open, edit, and save your existing Office files without worrying about format compatibility issues.

Frequently Asked Questions
Can I block OneDrive sync only on unmanaged devices?
Yes, Microsoft Entra Conditional Access allows you to set device state conditions. You can target policies specifically at devices that are not marked as compliant or are not Microsoft Entra hybrid joined.
Does disabling OneDrive sync prevent users from editing documents in the browser?
No. When configured correctly using app-enforced restrictions or specific client app conditions, users are blocked from downloading and syncing via the desktop application but can still fully access and edit files via OneDrive Online or SharePoint Online web interfaces.
Why do I need to select SharePoint Online to block OneDrive sync?
OneDrive for Business is built on SharePoint Online architecture. Applying a Conditional Access policy to the 'Office 365 SharePoint Online' cloud app inherently covers both SharePoint document libraries and individual users' OneDrive files.
What happens if a user tries to use the OneDrive sync client after the policy is applied?
The user will be prompted to sign in, but authentication will fail with a message stating that access has been blocked by their organization's conditional access policy, preventing the local folder from synchronizing.




