ConfigureIntermediateTutorialsUpdated July 4, 2026

How to Configure Automatic SharePoint Library Sync Using Microsoft Intune

Push SharePoint document libraries to your Windows fleet automatically with an Intune Settings catalog policy, so they appear in File Explorer without any user action.

Emanuel De Almeida June 9, 2026 13 min read
Difficulty
Intermediate
Time
20 minutes to configure; up to 8 hours for libraries to appear on devices
Steps
6
Last tested
July 4, 2026

When teams rely on shared SharePoint libraries, asking every user to open the site and click Sync is inconsistent and generates support tickets. Microsoft Intune solves this by deploying the OneDrive Configure team site libraries to sync automatically setting (internally AutoMountTeamSites) through a Settings catalog policy: you list the libraries by ID once, assign the policy to the right user groups, and OneDrive mounts those libraries as online-only files in File Explorer the next time each user signs in. This tutorial walks through copying a library's ID, building the policy, assigning it correctly, and confirming the result on a device - including the prerequisites and performance limits that quietly cause most failed rollouts. It is a change to device configuration, but a low-risk, easily reversible one.

Before you start

What you will learn

  • You will copy a SharePoint library's ID, create an Intune Settings catalog policy that enables the OneDrive 'Configure team site libraries to sync automatically' setting, assign it to user groups, and verify the library syncs on a device.
  • Doing this centrally removes the manual 'open the site and click Sync' step, keeps document access consistent across the fleet, and cuts help-desk requests, while IT keeps control over which libraries reach which users.

Requirements

  • Access to the Microsoft Intune admin center as an Intune Administrator, plus read access to the SharePoint libraries you want to sync.
  • Windows 10 version 1709 (Fall Creators Update) or later, with OneDrive Files On-Demand enabled and the OneDrive sync app signed in with the user's work account. Not supported for on-premises SharePoint Server.
  • Intune Administrator
  • SharePoint read access on each target library

Good to know

  • About 20 minutes to set up; libraries can take up to 8 hours to appear on devices.
  • Tested in the Microsoft Intune admin center with OneDrive on Windows 11, July 2026.

Quick answer

In SharePoint, open the library, click Sync, cancel the OneDrive prompt, and choose Copy library ID. In the Intune admin center go to Devices > Windows > Configuration > Create > New policy (Windows 10 and later, Settings catalog). Add the OneDrive setting 'Configure team site libraries to sync automatically (User)', enable it, add each library by friendly name and ID, then assign the policy to user groups. OneDrive mounts the libraries at next sign-in (up to 8 hours).

Microsoft Intune admin center > Devices > Windows > Configuration > Create > New policy > Settings catalog > OneDrive > Configure team site libraries to sync automatically (User)

Step-by-step tutorial

6 steps
1

Copy the library ID from SharePoint

Get the unique identifier OneDrive needs to target the correct library.

SharePoint library > Sync > Copy library ID

In a browser, open the target SharePoint document library (for example Documents on a team site). In the command bar, click Sync. When the Open Microsoft OneDrive? prompt appears, click Cancel - you only need the identifier. In the We're syncing your files dialog, click Copy library ID. This copies an encoded string containing the tenant, site, web, and list IDs to your clipboard.

SharePoint library Sync dialog showing the Copy library ID button
Expected resultAn encoded library ID string is on your clipboard. Paste it into a text editor so you can reuse it in the policy.

If Copy library ID doesn't appear, you likely lack sufficient permissions on the library.

2

Decode the library ID (optional but recommended)

Turn the URL-encoded string into a readable value so you can sanity-check it before pasting it into Intune.

The copied string is URL-encoded. To read it, open Windows PowerShell (no admin rights needed) and run the command below, replacing the placeholder with your copied ID. The output shows readable parameters including siteId and listId. You can paste the whole copied string into the Intune value - decoding is only to verify you copied the right library.

PowerShell
[uri]::UnescapeDataString("PASTE_COPIED_LIBRARY_ID_HERE")
A decoded string showing the site and list identifiers for the library
Expected resultA decoded string showing the site and list identifiers for the library you selected, confirming you copied the intended library.

Intune accepts the full copied string as the Value; you don't need to trim it down to a bare GUID.

3

Create a Settings catalog profile in Intune

Start a Windows configuration profile that will carry the OneDrive setting.

Devices > Windows > Configuration > Create > New policy

Sign in to the Microsoft Intune admin center at https://intune.microsoft.com. Go to Devices > Windows > Configuration, then click Create > New policy. Set Platform to Windows 10 and later and Profile type to Settings catalog, then click Create. On the Basics tab, give the profile a clear name such as Sync SharePoint Libraries Automatically and a description noting which libraries and which groups it targets. Click Next.

Intune Create a profile screen with Windows 10 and later platform and Settings catalog profile type selected
Expected resultYou reach the Configuration settings tab with an empty settings list, ready to add the OneDrive setting.

Use a naming convention that includes the department or library set so other admins can identify the policy's purpose.

4

Add and enable the OneDrive team site sync setting

Configure the actual setting that mounts the libraries and list each one.

Configuration settings > + Add settings > OneDrive > Configure team site libraries to sync automatically (User)

On the Configuration settings tab, click + Add settings. In the settings picker, search for configure team site libraries. Under the OneDrive category, select Configure team site libraries to sync automatically (User), then close the picker. Toggle the setting to Enabled. Under Libraries (User), click Add and create one entry per library: enter a friendly Name (for display/reference) and paste the copied library ID as the Value. Repeat Add for each library, then click Next.

OneDrive setting Configure team site libraries to sync automatically enabled with a library name and ID entered
Expected resultThe setting shows as Enabled with one row per library, each with a name and a library ID value.

Choose the (User) variant so the policy follows the user. The friendly Name is only a label; File Explorer shows the library's real SharePoint name.

5

Assign the policy to user groups

Target the right people - this is a user-scoped setting, so device groups won't work.

Assignments > Add groups

On the Assignments tab, under Included groups, click Add groups and select the Microsoft Entra security groups containing your target users. Prefer starting with a small pilot group. Click Next through Scope tags (optional), review everything on Review + create, then click Create.

Intune policy Assignments tab with a user security group added to Included groups
Expected resultThe policy is created and begins deploying to the assigned user groups.

Because the setting is user-scoped, assign it to user security groups, not device groups. Microsoft 365 groups can't be used for Intune assignment - use security groups (dynamic groups work).

6

Verify the sync on a target device

Confirm the library actually mounts for an end user.

Event Viewer > Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin

On a device belonging to an assigned user, make sure OneDrive is running (cloud icon in the system tray) and signed in with the work account. After the user signs in - allow up to 8 hours - open File Explorer and look under your organization's name for the configured libraries. To confirm the policy reached the device, open Event Viewer and browse to Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin, then look for Event ID 814 referencing the OneDrive AutoMountTeamSites setting.

File Explorer showing a SharePoint library mounted under the organization name with OneDrive sync icons
Expected resultThe configured libraries appear in File Explorer under your organization's name and begin syncing as online-only files; Event ID 814 confirms the policy was applied.

To speed up testing, trigger a Sync from the Intune admin center or Company Portal and have the user sign out and back into Windows to refresh the OneDrive session.

How to Confirm the SharePoint Libraries Are Syncing

A successful configuration shows two things: in Intune, the policy's Device and user check-in status reports Succeeded for your target users; on the device, the libraries appear under your organization's name in File Explorer with OneDrive sync icons, and Event ID 814 is logged under the DeviceManagement diagnostics provider. Because OneDrive only evaluates the mount list at sign-in and within an eight-hour window to spread network load, a library that hasn't appeared yet on a freshly targeted user isn't necessarily broken - give it a full sign-in cycle before troubleshooting. Remember the setting downloads content as online-only files, so File Explorer shows the libraries without consuming local disk until files are opened.

  • Policy status 'Succeeded' in Intune, libraries visible under the org name in File Explorer with sync icons, and Event ID 814 present in the device's DeviceManagement Admin log.
  • Policy shows 'Succeeded' but no library appears: usually Files On-Demand is disabled, OneDrive isn't signed in with the work account, or the setting was assigned to a device group instead of a user group.
  • Confirms the OneDrive NGSC policy reached the client, even before files finish downloading.
  • Expected default state - content downloads on access, not immediately.

Troubleshooting

Policy shows Succeeded but no library appears in File Explorer

Cause: OneDrive Files On-Demand is not enabled, or the device is below Windows 10 1709 - both are hard prerequisites for this setting.

Enable OneDrive Files On-Demand (via its own OneDrive policy) and confirm the device runs Windows 10 1709 or later, then have the user sign out and back in.

The setting never applies to some users

Cause: The policy was assigned to a device group. 'Configure team site libraries to sync automatically (User)' is user-scoped.

Reassign the policy to Microsoft Entra user security groups. Device-group assignment will not deliver a user-scoped OneDrive setting.

Libraries take many hours (or a weekend) to appear

Cause: OneDrive only evaluates the mount list at sign-in and spreads syncing across an eight-hour window by design.

This is expected. For testing, trigger an Intune sync, sign the user out and in, or deploy a TimerAutoMount remediation to shorten the wait; otherwise allow the full window.

Sync is slow, incomplete, or errors on a large library

Cause: The library exceeds Microsoft's recommended limits (over 5,000 files/folders, or the same library pushed to more than 1,000 devices).

Restructure or split the library, or narrow the assignment, to stay within the documented limits, then redeploy.

A user can see the library but not open some files

Cause: The Intune policy configures syncing only; it does not grant SharePoint permissions.

Verify the user has at least read (typically contribute) permission on the SharePoint library; OneDrive silently skips libraries the user can't access.

Frequently asked questions

How long does it take for the SharePoint libraries to appear on devices?

OneDrive evaluates the list at the user's next sign-in and can take up to 8 hours by design to spread network load. Signing out and back in, or a TimerAutoMount remediation, speeds up testing.

Should I assign this policy to user groups or device groups?

User groups. The 'Configure team site libraries to sync automatically (User)' setting is user-scoped, so device-group assignment will not deliver it.

Does this work with on-premises SharePoint Server?

No. This setting works only with SharePoint Online in Microsoft 365. On-premises SharePoint Server is explicitly not supported by the OneDrive AutoMountTeamSites setting.

Can a user stop syncing a library that was pushed by the policy?

No. When the setting is enabled, users cannot stop syncing the libraries you specify. Remove the user from the assigned group or change the policy to stop the sync.

Do I still need to grant SharePoint permissions?

Yes. The policy only configures the sync mechanism. Users must already have at least read access to each library, or OneDrive will skip syncing it.

Are the synced files stored on the local disk?

Not by default. Files On-Demand mounts the libraries as online-only files that download on access, so File Explorer shows them without consuming local storage upfront.

Reader reviews

Rate this articleBe the first to rate
No written reviews yetRate the article above, or be the first to share your experience.

Related articles