ANAVEM
Reference
Languagefr
Sync SharePoint Libraries Using Microsoft Intune

Sync SharePoint Libraries Using Microsoft Intune

Configure automatic SharePoint library synchronization on managed Windows devices via Microsoft Intune, using the OneDrive sync engine with Files-On-Demand and enterprise-grade access controls.

Emanuel DE ALMEIDA
3/13/2026 15 min 8
mediumintune 10 steps 15 min

Overview: Sync SharePoint Libraries Using Microsoft Intune

Microsoft Intune enables IT admins to configure automatic SharePoint library synchronization on managed Windows devices through the OneDrive sync engine. This eliminates manual setup by deploying the OneDrive Known Folder Move (KFM) and SharePoint library sync configuration via Intune device configuration profiles, targeting device groups without end-user interaction. Requirements include Microsoft 365 Business Basic/Standard/Premium or Enterprise with SharePoint Online enabled, OneDrive sync client version 18.151.0729.0012+, and Windows 10/11 devices enrolled in Intune.

Configuration is done through Intune Administrative Templates (ADMX): deploy the "Configure SharePoint Online sites to be automatically synced silently" policy using the tenant ID and site URL. Files-On-Demand is enabled by default, ensuring only requested files consume local disk space while maintaining full offline access to metadata. Sync policies can be scoped by Azure AD group to target specific departments or device collections.

Tip: Use the OneDrive sync reports in the Microsoft 365 admin center to monitor sync health, identify devices with sync errors, and track bandwidth consumption across your SharePoint library sync deployments.

Implementation Guide

Full Procedure

01

Identify SharePoint Library IDs

Before configuring Intune policies, you need to collect the unique Library IDs for each SharePoint document library you want to sync automatically.

Navigate to your SharePoint site and open the document library you want to sync. Click the Sync button in the toolbar. When the "We're syncing your files" dialog appears, select Copy library ID. This provides the correctly formatted Library ID needed for Intune configuration.

# Alternative PowerShell method to retrieve library information
Install-Module -Name PnP.PowerShell -Force
Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/YourSiteName" -Interactive
Get-PnPList | Where-Object {$_.BaseTemplate -eq 101} | Select-Object Title, Id

Document each Library ID along with its corresponding site URL and library name. You'll need these exact values for the Intune policy configuration.

Pro tip: Create a spreadsheet to track Library IDs, site URLs, and target user groups for each library you plan to sync. This makes policy management much easier later.
02

Access Microsoft Endpoint Manager Admin Center

Sign in to the Microsoft Endpoint Manager admin center at https://endpoint.microsoft.com using an account with Intune Administrator privileges.

Navigate to Devices > Windows > Configuration profiles. This is where you'll create the policy that automatically syncs SharePoint libraries to managed devices.

Verification: Confirm you can see the Configuration profiles page and have permissions to create new policies. If you receive access denied errors, verify your account has the Intune Administrator role assigned.

Warning: Only users with Intune Administrator or Global Administrator roles can create device configuration policies. Standard users cannot access these settings.
03

Create New Configuration Profile

Click Create > New Policy to start creating your SharePoint sync configuration.

Select the following options:

  • Platform: Windows 10 and later
  • Profile type: Settings Catalog (recommended for modern management)

Click Create to proceed to the profile configuration wizard.

The Settings Catalog approach provides more granular control and better future compatibility compared to Administrative Templates.

Verification: You should now see the profile creation wizard with tabs for Basics, Configuration settings, Scope tags, and Assignments.

04

Configure Basic Profile Information

On the Basics tab, provide clear identification for your policy:

  • Name: "Auto-Sync SharePoint Libraries - [Department/Team]"
  • Description: "Automatically syncs designated SharePoint document libraries to managed Windows devices for offline access"

Use descriptive names that indicate which libraries or user groups the policy targets. This helps with policy management as your environment grows.

Click Next to proceed to configuration settings.

Pro tip: Include the creation date and target audience in your policy description. For example: "Created 2026-03-10 - Syncs Finance team SharePoint libraries to managed devices."
05

Add SharePoint Library Sync Settings

In the Settings Picker, search for "Configure team site libraries to sync automatically". From the OneDrive settings category, select Configure team site libraries to sync automatically (User).

Enable the setting by toggling it to Enabled. Under Libraries (User), you'll configure each SharePoint library:

Library Name: Finance Documents
Library ID: b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd

Use the + Add button to configure multiple libraries. Each library requires its unique Library ID that you collected in Step 1.

For each library entry, ensure the Library ID format matches exactly what you copied from SharePoint - these IDs are case-sensitive and must be precise.

Click Next when all libraries are configured.

06

Configure Scope Tags and Assignments

On the Scope tags tab, add appropriate tags if your organization uses them for policy management. For most deployments, you can skip this step.

On the Assignments tab, specify which users or devices will receive this policy:

  • Include: Select user groups or device groups that need access to the SharePoint libraries
  • Exclude: Optionally exclude specific users or devices

Common assignment strategies:

  • Assign to Azure AD security groups based on department
  • Assign to device groups for specific hardware types
  • Use dynamic groups based on user attributes

Verification: Review your assignments to ensure the right users will receive the policy. Incorrect assignments are the most common cause of sync failures.

07

Review and Deploy the Policy

On the Review + Create tab, carefully verify all policy settings:

  • Profile name and description are clear
  • All SharePoint Library IDs are correctly formatted
  • User/device assignments target the right groups
  • OneDrive sync setting is enabled

Click Create to deploy the policy. The policy will appear in your Configuration profiles list with a status of "Not assigned" initially, then change to "Assigned" as devices check in.

Verification: Navigate back to Devices > Windows > Configuration profiles and confirm your new policy appears in the list with the correct assignment count.

Warning: Once deployed, policy changes can take up to 8 hours to apply to devices. Plan your deployments accordingly and avoid making frequent changes.
08

Monitor Policy Deployment Status

Click on your newly created policy to access its overview page. Here you can monitor deployment progress and identify any issues.

Key metrics to monitor:

  • Assignment status: Shows how many devices have received the policy
  • Device status: Indicates successful application vs. errors
  • User status: Shows per-user deployment results

Click Device status to see detailed information about individual devices. Look for devices showing "Error" status and click them to view specific error messages.

Common deployment issues include:

  • Devices not checking in with Intune recently
  • Users lacking permissions to SharePoint libraries
  • OneDrive sync client not installed or outdated

Verification: Wait 2-4 hours after policy creation, then check that at least 80% of target devices show "Success" status.

09

Verify SharePoint Library Synchronization

On a managed device where the policy has been applied, verify that SharePoint libraries are syncing automatically.

Check the OneDrive system tray icon - it should show sync activity for the configured SharePoint libraries. Open File Explorer and navigate to the OneDrive folder. You should see folders for each configured SharePoint library.

# PowerShell verification on managed device
Get-ItemProperty -Path "HKCU:\Software\Microsoft\OneDrive\Accounts\Business1" -Name "Tenants"
Get-ChildItem "$env:USERPROFILE\OneDrive - YourCompany" | Where-Object {$_.PSIsContainer}

Libraries appear as folders with cloud icons, indicating Files-On-Demand is active. Users can access files offline by right-clicking and selecting "Always keep on this device".

Verification: Open a SharePoint library folder and confirm you can access files. Check that the OneDrive sync client shows the library in its sync status.

Pro tip: Libraries may take up to 8 hours after user sign-in to begin syncing. Be patient during initial deployment and communicate expected timelines to users.
10

Troubleshoot Common Sync Issues

When SharePoint libraries don't sync as expected, follow this systematic troubleshooting approach:

Check OneDrive Sync Client Status:

%localappdata%\Microsoft\OneDrive\onedrive.exe /status

Reset OneDrive Sync (if needed):

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
%localappdata%\Microsoft\OneDrive\onedrive.exe

Verify Registry Entries: Check that Intune has written the correct registry values for automatic sync:

Get-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\OneDrive" -Name "AutoMountTeamSites" -ErrorAction SilentlyContinue

Common resolution steps:

  • Restart the OneDrive sync client
  • Sign out and back into OneDrive
  • Verify user permissions in SharePoint
  • Check device compliance status in Intune
  • Force policy sync from Company Portal app

If issues persist, collect OneDrive sync logs from %localappdata%\Microsoft\OneDrive\logs for Microsoft support analysis.

Frequently Asked Questions

How long does it take for SharePoint libraries to sync after deploying an Intune policy?+
SharePoint libraries typically begin syncing within 8 hours after a user signs in to a device where the Intune policy has been applied. The policy itself usually applies to devices within 1-2 hours during business hours, but the actual library synchronization process can take additional time as OneDrive processes the configuration and begins downloading file metadata.
Can you sync SharePoint libraries from multiple sites using one Intune policy?+
Yes, you can configure multiple SharePoint libraries from different sites within a single Intune policy. Each library requires its unique Library ID, which you collect from each SharePoint site. Use the '+ Add' button in the policy configuration to add multiple libraries, and ensure each Library ID is correctly formatted and corresponds to the right SharePoint site.
What happens if users don't have permissions to a SharePoint library configured in Intune?+
If users lack proper SharePoint permissions, the sync will fail for that specific library, even if the Intune policy deploys successfully. Users need at least read access to SharePoint libraries for synchronization to work. The OneDrive sync client will show error messages, and the library won't appear in the user's OneDrive folder. Verify permissions in SharePoint before deploying sync policies.
How do you troubleshoot SharePoint libraries that won't sync through Intune?+
Start by checking the OneDrive sync client status using the command '%localappdata%\Microsoft\OneDrive\onedrive.exe /status'. Verify that Intune has written the correct registry entries for automatic sync, and confirm users have proper SharePoint permissions. If needed, reset the OneDrive sync client and force policy refresh through the Company Portal app. Collect OneDrive logs from '%localappdata%\Microsoft\OneDrive\logs' for persistent issues.
Does SharePoint library sync through Intune work with Files-On-Demand?+
Yes, SharePoint libraries synced through Intune automatically use Files-On-Demand functionality. This means files appear in File Explorer with cloud icons but don't consume local disk space until accessed. Users can right-click specific files or folders and select 'Always keep on this device' to download them for offline access. This approach balances accessibility with storage efficiency on managed devices.
Emanuel DE ALMEIDA
Written by

Emanuel DE ALMEIDA

Microsoft MCSA-certified Cloud Architect | Fortinet-focused. I modernize cloud, hybrid & on-prem infrastructure for reliability, security, performance and cost control - sharing field-tested ops & troubleshooting.

Discussion

Share your thoughts and insights

You must be logged in to comment.

Loading comments...