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 stepsDecode 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.
[uri]::UnescapeDataString("PASTE_COPIED_LIBRARY_ID_HERE")
Intune accepts the full copied string as the Value; you don't need to trim it down to a bare GUID.
Create a Settings catalog profile in Intune
Start a Windows configuration profile that will carry the OneDrive setting.
Devices > Windows > Configuration > Create > New policySign 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.

Use a naming convention that includes the department or library set so other admins can identify the policy's purpose.
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.

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.
Assign the policy to user groups
Target the right people - this is a user-scoped setting, so device groups won't work.
Assignments > Add groupsOn 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.

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).
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 > AdminOn 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.

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.







