Conditional Access Problems

How to Disable OneDrive Sync and Enforce Online-Only Access in Microsoft 365

John WilsonJohn Wilson Nov 2, 2026 870 views

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.

How to Disable OneDrive Sync and Enforce Online-Only Access in Microsoft 365
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.
Before you start

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.

Solution 1Recommended

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.

1
Access the Microsoft Entra Admin Center

Sign in to the Microsoft Entra admin center with at least Conditional Access Administrator credentials.

2
Create a New Policy

Navigate to Protection > Conditional Access > Policies. Click on 'New policy' to begin configuration.

3
Assign Users or Groups

Enter a descriptive name for your policy. Under 'Users', select the specific groups or test users you wish to apply the restrictions to.

4
Select the Target Cloud App

Under 'Target resources' (or Cloud apps), choose 'Select apps' and search for 'Office 365 SharePoint Online'. Selecting SharePoint also covers OneDrive for Business.

5
Configure Client App Conditions

Under 'Conditions', select 'Client apps'. Configure it to apply only to 'Mobile apps and desktop clients' so browser access remains unaffected.

6
Set Session Controls

Under 'Access controls' > 'Session', check 'Use app enforced restrictions'. This limits access to a browser-only, non-downloadable state for unmanaged devices.

7
Test and Enable

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.

Configure a Conditional Access Policy in Microsoft Entra Admin Center
Important Policy Testing: Always test new Conditional Access policies using a non-administrator account to avoid inadvertently locking administrative access to your tenant.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the lightweight installer to quickly set up the suite on your computer.
  3. 3. Open Your Documents: Instantly open, edit, and save your existing Office files without worrying about format compatibility issues.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Lightweight installation that operates smoothly on both managed and unmanaged personal devices.Built-in PDF toolkit for viewing, editing, and securing your PDF documents without extra software.Familiar tabbed interface that requires zero learning curve for a seamless migration.
microsoft office alternative - wps office

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.