SharePoint sites are used to share data within an organization. Typically, this data is shared within teams or projects.
If it’s data that multiple people work with on a regular basis, then it’s ideal to automatically connect these SharePoint sites to all users who work with the data so that they don’t have to find the SharePoint site themselves and manually set it to sync to their computer.
Automatic synchronization can be easily set up using Microsoft Intune.
How to set up automatic SharePoint site synchronization using Microsoft Intune
In the Microsoft Intune admin center, go to Devices – Windows – Configuration and create a new configuration policy for the Windows 10 and later platform and select Settings catalog as the Profile type.
Give the new policy any name you want. On the Configuration settings page, add a new setting. In the Settings picker, either manually find OneDrive – Configure team site libraries to sync automatically or type it in the search at the top.
This setting needs to be enabled now. At that point, additional options will open, where you can enter the name of the library in the Name field as end users will see it. In the Value field, you need to enter the ID of the library you want to add to the users. To find out the library ID, simply open the library on SharePoint Online and click Sync in the top menu. A new window will open and in it you click on Copy library ID, which will copy the library ID to the clipboard.
At this point, you have copied the library ID. The problem is that the library ID copied in this way cannot be used directly in Microsoft Intune, because the library ID contains special Unicode characters that cannot be used directly in Microsoft Intune. So, you need to convert the library ID to ASCII first. The easiest way to do this is through PowerShell where you replace the “Copied String” with the copied library ID.
[uri]::UnescapeDataString("Copied String")
As a result, you get a library ID in ASCII format that you can use directly in Microsoft Intune.
In the assignments section, just select which users or user groups you want to apply the configuration to.