This guide explains how to prevent users from syncing personal OneDrive accounts to their work or school devices. By enforcing this policy, you reduce the risk of data leakage, malware, and compliance violations. You’ll need Microsoft 365 admin permissions and access to the Microsoft Entra admin center or Intune.
What You’ll Need
- Global Administrator or SharePoint Administrator role in Microsoft 365
- Access to Microsoft Entra admin center (formerly Azure AD)
- If using Intune: a license that includes Microsoft Intune (e.g., Microsoft 365 E3 or E5)
- Devices joined to Azure AD or enrolled in mobile device management (MDM)
Step-by-Step
- Sign in to the Microsoft Entra admin center using an account with Global Administrator or SharePoint Administrator privileges.
- Navigate to the OneDrive admin center: In the left menu, select All services > OneDrive. Alternatively, go directly to
admin.onedrive.com. - Open the Sync settings: In the OneDrive admin center, select Sync in the left navigation.
- Restrict syncing to specific domains: Under Sync restrictions, check the box for Allow syncing only on PCs joined to specific domains. Then enter your organization’s domain name(s) (e.g.,
contoso.com). This prevents users from syncing OneDrive files to devices that aren’t domain-joined. - Block personal OneDrive accounts: Under the same section, look for Block syncing of personal OneDrive accounts. Check this box. This is the key setting that prevents users from linking their personal Microsoft accounts.
- Save the settings: Click Save at the top of the page. The change may take up to 24 hours to propagate to all clients.
- For devices not domain-joined (BYOD): If you want to enforce the policy on personal devices, you need to use Intune. Go to Microsoft Intune admin center.
- Create a configuration profile: In Intune, go to Devices > Configuration profiles > Create profile. Choose Windows 10 and later as the platform, and Settings catalog as the profile type.
- Add the OneDrive setting: In the settings catalog, search for OneDrive. Find and select Block syncing of personal OneDrive accounts. Set it to Enabled.
- Assign the profile: Assign the profile to the appropriate user or device groups. Deploy it to ensure all devices receive the policy.
- Verify the policy: On a test device, sign out of OneDrive and try to add a personal account. It should fail with a message that the organization doesn’t allow it.
Common Mistakes
- Not setting the domain restriction: If you only block personal accounts but don’t restrict to domain-joined PCs, users might still sync work files to a personal device (though personal accounts are blocked, they could use a work account on a non-domain PC).
- Forgetting to save: The OneDrive admin center has a separate Save button; if you navigate away without saving, changes are lost.
- Applying the policy to the wrong groups: In Intune, ensure you assign the profile to the correct user/device groups. Assigning to all users might block legitimate needs (e.g., contractors).
- Not waiting for propagation: Changes can take up to 24 hours. Testing immediately might show no effect.
Tips
- Communicate the change to users before enforcing it, to avoid confusion and support tickets.
- Use the Sync restrictions page to also block sync on Macs if needed (by specifying domain or not).
- For extra security, consider disabling the ability to sync OneDrive files on unmanaged devices via Conditional Access policies in Entra.
- Monitor the OneDrive admin center’s Reports section to see if any users are still attempting to sync personal accounts.
- If you use both domain join and Intune, apply both methods for defense in depth.
Troubleshooting
- Policy not taking effect: First, check that the device is properly joined to the domain or enrolled in Intune. Then verify the policy assignment in Intune. If using the OneDrive admin center, ensure the setting is saved and wait 24 hours.
- Users can still add personal accounts: Confirm the device is receiving the policy. In the OneDrive sync client, go to Settings > Account and see if there’s a message about the organization’s policy. If not, the policy might not be applied.
- Error when saving in OneDrive admin center: Make sure you have the correct admin role. If you see a permission error, contact your Global Administrator.
- Intune profile fails to deploy: Check the device’s compliance status and ensure it’s enrolled. Also verify the profile is assigned to a group that includes the device.
- Users report sync issues after the policy: If they were previously syncing a personal account, they’ll need to remove it. The policy prevents new additions but may not remove existing ones. Instruct them to sign out and remove the personal account from OneDrive settings.
Frequently Asked Questions
Will this block users from accessing their personal OneDrive via the web?
No. This only blocks the sync client from linking a personal account. Users can still access personal OneDrive through a browser, though you can block that with conditional access or web filtering if needed.
Does this affect OneDrive for Business sync?
No. The policy only targets personal OneDrive accounts. Work or school accounts (OneDrive for Business) will continue to sync normally.
Can I allow some users to sync personal accounts?
The OneDrive admin center setting is global. For granular control, you’d need to use Intune and assign the policy to specific groups, leaving others without the policy.
What happens to users who already have a personal account linked?
The policy prevents new links, but existing links may remain active. Users will need to manually remove the personal account from their OneDrive sync client. You can also use a script or configuration to remove it, but that’s outside the scope of this guide.
How long does it take for the policy to apply?
Typically within 24 hours, but it can be faster if you force a sync of the policy on the client (e.g., restart the OneDrive process).
Does this work on Mac?
The OneDrive admin center setting applies to both Windows and Mac sync clients. The Intune settings catalog is Windows-only; for Mac, you’d need to use a plist configuration profile.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Turn Off Backup Encryption in iTunes?
- Campus Tech Innovation Hubs: What They Are
- Poco C51 Airtel Prepaid Locked Variant India?
- Jenkins vs GitHub Actions: Which CI/CD Fits Your Team?
- Shared VPS Hosting: Is It Better?
- Disk Defrag Pro: What It Does and Whether You Need It