This article will help you allow or block specific organizations from syncing OneDrive accounts or files on Windows 11/10. The same setting is available in the Registry Editor and the Local Group Policy Editor.
Let’s assume that multiple accounts from multiple organizations are included in your Windows PC. For some reason, you want to allow or block accounts of a specific organization from synchronizing files on your PC. You can use this article to get the job done.
Before getting started, you must note the organization’s Tenant ID. Otherwise, you won’t be able to specify the organization. For your information, you can copy it from the Azure Active Directory admin center. Follow this link to get the Tenant ID in your clipboard.
Precaution: Don’t forget to backup all Registry files and create a System Restore point to be on the safe side.
Allow or block syncing OneDrive accounts for specific organizations
To allow or block syncing OneDrive accounts for specific organizations, follow these steps-
- Press Win+R to open the Run prompt.
- Type regedit and hit the Enter button.
- Navigate to OneDrive in HKLM.
- Right-click on OneDrive > New > Key.
- Name it as AllowTenantList or BlockTenantList.
- Right-click on AllowTenantList or BlockTenantList > New > String Value.
- Name it as your Tenant ID.
- Double-click on it and set the Value data as your Tenant ID.
- Click the OK button.
You will have to open the Registry Editor. For that, press Win+R, type regedit
, and hit the Enter button. Click the Yes button in the UAC popup window. After opening the Registry Editor on your computer, navigate to the following path-
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive
If you cannot find OneDrive inside Microsoft, right-click on Microsoft > New > Key and name it OneDrive. After that, right-click on OneDrive > New > Key.
If you want to allow a specific organization, name it AllowTenantList. If you want to block a particular organization, call it BlockTenantList.
After that, right-click on AllowTenantList or BlockTenantList > New > String Value and name it as your Tenant ID. Then, right-click on this String Value and set the Value data as your Tenant ID.
That’s all! Check out the Local Group Policy method to get the job done.
Related: OneDrive Sync error with FSLogix on VM
Allow or block syncing OneDrive accounts for specific organizations
To allow or block syncing OneDrive accounts for specific organizations, follow these steps-
- Press Win+R.
- Type gpedit.msc and hit the Enter button.
- Navigate to OneDrive in Computer Configuration.
- Double-click on Allow syncing OneDrive accounts for only specific organizations or Block syncing OneDrive accounts for specific organization.
- Select the Enabled option.
- Click the Show button.
- Enter the Tenant ID in the Value field.
- Click the OK button.
- Click on Apply and OK.
Let’s check out these steps in detail.
At first, press Win+R, type gpedit.msc
, and hit the Enter button to open your computer’s Local Group Policy Editor. After opening it, navigate to the following path-
Computer Configuration > Administrative Templates > OneDrive
Here, you will find two policies: Allow syncing OneDrive accounts for only specific organizations and Block syncing OneDrive accounts for specific organizations.
If you want to allow a specific organization, double-click on the first setting, select the Enabled option, and click the Show button.
Next, enter the Tenant ID in the Value field and click the OK button.
Similarly, if you want to block a specific organization, double-click on the second setting, select the Enabled option, and go through the abovementioned steps.
At last, click the Apply and OK buttons to save the change.
That’s all! I hope it helps.
Related: How to add OneDrive sync settings in Local Group Policy EditorSync
How do I disable OneDrive for specific users?
To remove licenses from users or groups in Azure Active Directory, navigate to the Management tab in the top pane. Select Azure Active Directory from there and drill down to License Management, followed by License Modification. Within the License Modification section, you’ll find an option for assigning or removing licenses. Choose “Remove selected licenses” to proceed with removing licenses.
How do I prevent users from syncing personal OneDrive accounts?
You can configure a policy to prevent users from syncing their personal OneDrive accounts on Windows 11/10 devices. To do so, navigate through the following settings: first, go to “Configuration Profiles” and then select “Create profile.” Choose “Windows 10” or “Windows 11” as the platform and navigate to “Administrative Templates.” Within Administrative Templates, select “User Configuration” and locate the setting labeled “Prevent users from syncing personal OneDrive accounts.”