Configure Automatic SharePoint Library Sync using Microsoft Intune

Key Takeaways

  • Automatically sync SharePoint libraries with OneDrive.
  • Requires OneDrive Files On-Demand and Windows 10 (1709) or later.
  • Libraries appear as online-only files to save storage space.
  • Avoid using it for very large libraries to ensure better performance.

Hey, let’s discuss about Configure Automatic SharePoint Library Sync using Microsoft Intune. This setting allows you to automatically sync selected SharePoint team site libraries to users’ devices when they sign in to the OneDrive sync app. The sync may take up to 8 hours after sign-in, and OneDrive Files On-Demand must be enabled. This feature works only on Windows 10 (1709) or later and is not supported for on-premises SharePoint sites.

Table of Contents

Configure Automatic SharePoint Library Sync using Microsoft Intune

When enabled, the specified libraries are downloaded as online-only files the first time users sign in, and users cannot stop syncing them. When disabled, new users will no longer have the libraries synced automatically, but existing users can continue syncing unless they manually stop it. For the best experience, avoid enabling this feature for large libraries or for libraries synced to more than 1000 devices.

How to Create a Profile

First, sign in to the Microsoft Intune Admin Center. Go to the Devices and select Configuration. Then click on the create down arrow, and after that, click on New Policy.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.1
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.1

Profile Creation in a Policy

This is the next step you need to take for policy Creation. In profile creation, you must select the platform and profile type. Here, I would like to configure the policy for Windows 10 and later platforms and the settings catalog profile. Then click on the Create button.

Patch My PC
Configure Automatic SharePoint Library Sync using Microsoft Intune
- Fig.2
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.2

Basic Tab for Name and Description

To begin configuring a policy in Intune, start with the Basics step. Here, we can add the name(Configure team site libraries to sync automatically) of the policy and give a brief description(not mandatory). Click Next to continue.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.3
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.3

Configuration Settings

With Settings Picker, you can use the Configuration Settings Tab. On this tab, you can click on the +Add Settings hyperlink to get the Settings Picker. The settings picker shows a huge number of settings. Here, I select the settings policy name(Configure team site libraries to sync automatically), there you can see the OneDrive category and enable the settings name.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.4
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.4

Disable this Policy

Once you have selected Configure team site libraries to sync automatically Policy and closed the Settings picker. You will see it on the Configuration page. By default, will be set to disabled. If you want to continue, click on the Next button.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.5
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.5

Enable this Policy

Enable the setting Configure team site libraries to sync automatically. Next, under Libraries (Device), enter the SharePoint site Library Name and corresponding Library ID value to sync with OneDrive. Click Next to continue.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.6
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.6

What is Scope Tag

In Intune, Scope Tags are used to control who can view and modify a policy. The scope tag is not mandatory, so you can skip this section. It functions as a tool for organisation and access management, but assigning it is optional. Click Next if they’re not required for your setup.

Configure Automatic SharePoint Library Sync using Microsoft Intune -  Fig.7
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.7

Assignments Tab for Selecting Group

In the Assignments tab, you choose the users or devices that will receive the policy by clicking Add Group under Include Group, select the group that you want to target (HTMD – Test Policy) and then click Next to continue.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.8
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.8

Finalising this Policy

Before completing the policy creation, you can review each tab to avoid misconfiguration or policy failure. After verifying all the details, click on the Create Button. After creating the policy, you will get a success message Configure team site libraries to sync automatically policy has been created successfully.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.9
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.9

Monitoring Status

To view a policy’s status, go to Devices > Configuration in the Intune portal, select the policy and check that the status shows Succeeded (1). Use manual sync in the Company Portal to speed up the process.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.10
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.10

Client Side Verification

To confirm if a policy has been applied, use the Event Viewer on the client device. Go to Applications and Services Logs > Microsoft > Windows > Device Management > Enterprise Diagnostic Provider > Admin. From the list of policies, use the Filter Current Log option and search for Intune event 814.

MDM PolicyManager: Set policy strinq, Policy: (AutoMountTeamSites Area: (OneDriveNGSCv2
~Policy~OneDriveNGSC), EnrollmentID requesting merqe: (EB427D85-802F-46D9-A3E2-
D5B414587F63), Current User: (Device), String: (), Enrollment Type: (0x6), Scope: (0x0).

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.11
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.11

How to Remove Assigned Group from this Policy

If you need to remove a group from a policy assignment for security updates. Open the policy from the configuration tab and click on the edit button. Then, click on the Remove button. Click Review + Save after making the changes.

For detailed information, you can refer to our previous post – Learn How to Delete or Remove App Assignment from Intune using by Step-by-Step Guide.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.12
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.12

How to Delete this Policy from Intune

If you want to delete this policy for any reason, you can do it easily. First, search for the policy name in the configuration section. When you find the policy name, click the 3-dot menu next to it and tap the Delete option.

For more information, you can refer to our previous post – How to Delete Allow Clipboard History Policy in Intune Step by Step Guide.

Configure Automatic SharePoint Library Sync using Microsoft Intune - Fig.13
Configure Automatic SharePoint Library Sync using Microsoft Intune – Fig.13

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, Join the WhatsApp Community and WhatsApp Channel to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Anoop C Nair has been Microsoft MVP from 2015 onwards for 10 consecutive years! He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is also a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM,  Windows,   Cloud PC, Windows, Entra, Microsoft Security, Career, etc.

Leave a Comment