Microsoft Intune SharePoint sync configuration on laptop screen in modern office
Cloud ComputingIntermediate

How to Sync SharePoint Libraries Using Microsoft Intune

Configure automatic SharePoint library synchronization to managed Windows devices through Microsoft Intune, enabling offline access while maintaining enterprise security controls.

Emanuel DE ALMEIDAEmanuel DE ALMEIDA
March 11, 202615 min read10 Steps

What SharePoint Libraries Can You Sync Through Microsoft Intune?

Microsoft Intune enables automatic synchronization of SharePoint document libraries to managed Windows devices, providing seamless offline access while maintaining enterprise security controls. This capability leverages the OneDrive sync engine to deploy designated SharePoint libraries without requiring manual user intervention.

The integration works with any SharePoint Online document library in your Microsoft 365 tenant, supporting Files-On-Demand functionality, differential sync for bandwidth efficiency, and automatic conflict resolution. Users get offline access to critical documents while IT maintains centralized control over which libraries sync to which devices.

What Are the Prerequisites for SharePoint Library Sync via Intune?

Before configuring automatic SharePoint library synchronization, ensure your environment meets these requirements:

Microsoft 365 Subscription Requirements: You need Microsoft 365 Business Basic, Business Standard, Business Premium, or Enterprise subscription with SharePoint Online enabled. The SharePoint document libraries must be created and populated with content that users need to access offline.

Administrative Access: Your account requires Intune Administrator privileges to access the Microsoft Endpoint Manager admin center at https://endpoint.microsoft.com. You also need appropriate permissions to access the SharePoint admin center for library management.

Device Requirements: Target devices must run Windows 10 or later and be enrolled in Microsoft Intune. The OneDrive sync client (OneDrive.exe) must be available on managed devices, typically installed through Windows updates or Microsoft 365 deployment.

User Permissions: Users must have at least read access to the SharePoint libraries you plan to sync. Without proper SharePoint permissions, the sync process will fail even if the Intune policy deploys successfully.

How Do You Identify SharePoint Library IDs for Intune Configuration?

The first critical step involves collecting unique Library IDs for each SharePoint document library you want to sync automatically. These IDs are essential for Intune policy configuration and must be exact.

Navigate to your SharePoint site and open the document library you want to sync. Click the Sync button in the toolbar - this is the same button users would click for manual synchronization. When the "We're syncing your files" dialog appears, select Copy library ID. This method provides the correctly formatted Library ID that Intune requires.

# 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. Create a spreadsheet tracking Library IDs, site URLs, and target user groups for each library you plan to sync. This organization makes policy management significantly easier as your deployment grows.

Pro tip: Library IDs are long alphanumeric strings that are case-sensitive. Always use the "Copy library ID" function rather than trying to extract IDs manually from URLs, as the format requirements are precise.

How Do You Create SharePoint Sync Policies in Microsoft Intune?

Access the Microsoft Endpoint Manager admin center at https://endpoint.microsoft.com using an account with Intune Administrator privileges. Navigate to Devices > Windows > Configuration profiles to begin creating your SharePoint sync policy.

Click Create > New Policy and select Platform: Windows 10 and later with Profile type: Settings Catalog. The Settings Catalog approach provides more granular control and better future compatibility compared to Administrative Templates.

On the Basics tab, provide clear identification for your policy. Use descriptive names like "Auto-Sync SharePoint Libraries - Finance Team" and include detailed descriptions that specify which libraries will sync and to which user groups. Include the creation date and target audience in your policy description for better management.

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 this setting and configure each SharePoint library under Libraries (User):

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 earlier. Ensure the Library ID format matches exactly what you copied from SharePoint - these IDs are case-sensitive and must be precise.

What Assignment Strategies Work Best for SharePoint Sync Policies?

On the Assignments tab, specify which users or devices will receive the SharePoint sync policy. Proper assignment strategy is crucial for successful deployment and avoiding sync conflicts.

Common effective assignment approaches include:

  • Department-based groups: Assign to Azure AD security groups organized by department (Finance, HR, Marketing)
  • Project-based groups: Create groups for specific projects that need shared document access
  • Device groups: Assign to device groups for specific hardware types or locations
  • Dynamic groups: Use Azure AD dynamic groups based on user attributes like department or job title

Configure both Include and Exclude assignments as needed. For example, include the "Finance Team" group but exclude "Finance Contractors" if contractors shouldn't have offline access to sensitive documents.

Warning: Incorrect assignments are the most common cause of sync failures. Double-check that your target groups contain the right users and that those users have appropriate SharePoint permissions.

Review all policy settings on the Review + Create tab before deployment. Verify that profile names are clear, all SharePoint Library IDs are correctly formatted, user/device assignments target the right groups, and the OneDrive sync setting is enabled.

How Long Does SharePoint Library Sync Take After Policy Deployment?

After creating and deploying your SharePoint sync policy, understanding the timeline helps set proper expectations with users and troubleshoot potential issues.

Policy Application Timeline: Intune policies typically apply to devices within 8 hours of deployment, though most devices receive policies within 1-2 hours during normal business hours. Devices must check in with Intune to receive new policies, which happens automatically but can be forced through the Company Portal app.

Library Sync Initiation: Once the policy applies to a device, SharePoint libraries may take up to 8 hours after user sign-in to begin syncing. This delay is normal and accounts for OneDrive sync client processing and initial file enumeration.

Monitor policy deployment through the Intune admin center. Click on your policy to access its overview page, where you can track assignment status, device status, and user status. Look for devices showing "Error" status and investigate specific error messages.

Key deployment metrics to monitor:

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

Common deployment issues include devices not checking in with Intune recently, users lacking permissions to SharePoint libraries, and OneDrive sync client not being installed or being outdated.

How Do You Verify SharePoint Library Synchronization on Managed Devices?

On a managed device where the policy has been applied, verification involves checking multiple indicators to confirm successful SharePoint library synchronization.

Check the OneDrive system tray icon first - it should show sync activity for the configured SharePoint libraries. The icon may display a sync progress indicator or show "Up to date" once initial synchronization completes.

Open File Explorer and navigate to the OneDrive folder, typically located at %USERPROFILE%\OneDrive - YourCompany. You should see folders for each configured SharePoint library alongside the user's personal OneDrive files.

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

SharePoint libraries appear as folders with cloud icons, indicating Files-On-Demand is active. This means files are available but not consuming local disk space until accessed. Users can make specific files or folders available offline by right-clicking and selecting "Always keep on this device".

Open the OneDrive settings by right-clicking the system tray icon and selecting "Settings". On the "Account" tab, you should see both the user's personal OneDrive and any synced SharePoint libraries listed with their sync status.

Pro tip: Train users to recognize the different file icons - cloud icons indicate online-only files, green checkmarks show locally cached files, and blue sync arrows indicate files currently syncing.

What Troubleshooting Steps Resolve Common SharePoint Sync Issues?

When SharePoint libraries don't sync as expected, follow this systematic troubleshooting approach to identify and resolve issues quickly.

Check OneDrive Sync Client Status: Start by verifying the OneDrive sync client is running and healthy. Open Command Prompt and run:

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

This command shows the current sync status and any error conditions. Look for messages about authentication issues, storage problems, or sync conflicts.

Verify Registry Entries: Intune writes specific registry values to enable automatic sync. Check that these values exist and are correct:

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

If these registry entries are missing, the Intune policy hasn't applied correctly to the device. Force a policy refresh through the Company Portal app or wait for the next automatic check-in.

Reset OneDrive Sync Client: If sync appears stuck or corrupted, reset the OneDrive sync client:

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

This stops all sync activity, clears the sync database, and restarts OneDrive. Users will need to sign in again, but configured SharePoint libraries should automatically begin syncing.

Common Resolution Steps:

  • Restart the OneDrive sync client through Task Manager
  • Sign out and back into OneDrive to refresh authentication
  • Verify user permissions in SharePoint - users need at least read access
  • Check device compliance status in Intune admin center
  • Force policy sync from Company Portal app
  • Clear OneDrive cache and restart sync

If issues persist after these steps, collect OneDrive sync logs from %localappdata%\Microsoft\OneDrive\logs. These detailed logs help Microsoft support analyze complex sync problems and provide specific resolution guidance.

Warning: Resetting OneDrive sync removes all locally cached files. Ensure users have saved any work in progress before performing sync resets, as unsaved changes may be lost.

For persistent issues affecting multiple users, review the Intune policy configuration for errors in Library IDs, assignment groups, or conflicting policies that might interfere with SharePoint sync functionality.

Step-by-Step Guide

1
Step 1 / 10

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.
2
Step 2 / 10

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.
3
Step 3 / 10

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.

4
Step 4 / 10

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."
5
Step 5 / 10

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.

6
Step 6 / 10

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.

7
Step 7 / 10

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.
8
Step 8 / 10

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.

9
Step 9 / 10

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
Step 10 / 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.

About the Author

Emanuel DE ALMEIDA

Emanuel DE ALMEIDA

Senior IT Journalist & Cloud Architect

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.

Last updated March 11, 2026

Discussion

Share your thoughts and insights

You must be logged in to comment.

Loading comments...