7.3.2 Ensure OneDrive sync is restricted for unmanaged devices

Information

Microsoft OneDrive allows users to sign in their cloud tenant account and begin syncing select folders or the entire contents of OneDrive to a local computer. By default, this includes any computer with OneDrive already installed, whether it is Azure Domain Joined or Active Directory Domain joined.

The recommended state for this setting is Allow syncing only on computers joined to specific domains Enabled: Specify the AD domain GUID(s)

Rationale:

Unmanaged devices pose a risk, since their security cannot be verified through existing security policies, brokers or endpoint protection. Allowing users to sync data to these devices takes that data out of the control of the organization. This increases the risk of the data either being intentionally or accidentally leaked.

Note: This setting is only applicable to Active Directory domains when operating in a hybrid configuration. It does not apply to Entra ID domains. If there are devices which are only Entra ID joined, consider using a Conditional Access Policy instead.

Impact:

Enabling this feature will prevent users from using the OneDrive for Business Sync client on devices that are not joined to the domains that were defined.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

To remediate using the UI:

Navigate to SharePoint admin center https://admin.microsoft.com/sharepoint

Click Settings then select OneDrive - Sync.

Check the Allow syncing only on computers joined to specific domains.

Use the Get-ADDomain PowerShell command on the on-premises server to obtain the GUID for each on-premises domain.

Click Save.

To remediate using PowerShell:

Connect to SharePoint Online using Connect-SPOService

Run the following PowerShell command and provide the DomainGuids from the Get-AADomain command:

Set-SPOTenantSyncClientRestriction -Enable -DomainGuids '786548DD-877B-4760-A749-6B1EFBC1190A; 877564FF-877B-4760-A749-6B1EFBC1190A'

Note: Utilize the -BlockMacSync:$true parameter if you are not using conditional access to ensure Macs cannot sync.

Default Value:

By default there are no restrictions applied to the syncing of OneDrive.

TenantRestrictionEnabled : False

AllowedDomainList : {}

See Also

https://workbench.cisecurity.org/benchmarks/15279

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7b.

Plugin: microsoft_azure

Control ID: 55f976ead1a986a1f65483ba4bf4fe3c9d8d26ef560059e8eed82c09af78cd45