7.3.2 (L2) 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 Entra Joined , Entra Hybrid 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)

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 domains. If there are devices which are only Entra ID joined, consider using a Conditional Access Policy instead.

NOTE: Nessus has provided the target output to assist in reviewing 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.

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.

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b.

Plugin: microsoft_azure

Control ID: 2878794bb33ed2094491b41879f521c689553ebc51fb68b7ea18ec2791f02871