Forum Discussion
PatrickF11
Dec 10, 2019Steel Contributor
OneDrive - Configure team site libraries to sync automatically
Hi, i would like to use the possibility to sync SharePoint libraries automatically. Therefore I've already created a new profile (type: administrative template) and set the "Configure team si...
GGotay
Sep 01, 2020Copper Contributor
I have this working in my environment. The policy I have has the two configured below.
Configure team site libraries to sync automatically (USER): Enabled
Use OneDrive Files On-Demand (DEVICE): Enabled
Once your devices sync with Intune you should see your libraries show in this Registry:
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\OneDrive\TenantAutoMount
My understanding is that the up to 8 hour wait period begins when OneDrive does it's next sync, and it has received the above registry key. We've been more successful in speeding things up by signing out of OneDrive and then back in to start the "timer".
Also, there is a 5000 item limit per library and 1000 device limit per policy. This is a problem for larger companies that will need to be looked into. However, you can break up your libraries so it stays under the content limit. Trying to create multiple policies to get around the device limit in Intune won't work either, because you cannot have 2 policies affecting the same target. Meaning, if users have to access libraries in another policy it ain't happening.
AsTheCrowFlew
Sep 02, 2020Brass Contributor
GGotay Are you applying the admin template to a user group or a device group? What happens if you have a common area machine where different user logins might run in conflict with the libraries you specified in the "Configure team site libraries" key?
- GGotaySep 02, 2020Copper Contributor
AsTheCrowFlew it is targeting a user group. The Files on Demand policy still applies (although this should probably be applied with your OneDrive Admin Template for good hygiene).
I listed all of the libraries in one admin template policy. The registry changes in the Current User so if another user logs into that same machine it will still apply to the new user (given time restraints). The user will only be able to access the library content they have privilege to.
I will note though that if your users have list access to see the top level folder then there will be a lot of libraries showing even if the content isn't viewable due to access restriction. We are currently trying to tweak this now so that only the libraries you have access to show up in your File Explorer.