Jump to content

Has anyone managed to get 'Configure team site libraries to sync automatically'?


Recommended Posts

Posted

We have OneDrive auto sign in when staff and students sign in to a device. Works great.

 

I have configured the section on the GPP for 'Configure team site libraries to sync automatically' but it doesn't seem to be syncing the SharePoint library when a user signs in... I've waited over 12 hours..

 

Not sure what I am missing here... we want to be able to sync the staff and student sharepoints when they sign in..

 

Thanks

Posted
We have OneDrive auto sign in when staff and students sign in to a device. Works great.

 

I have configured the section on the GPP for 'Configure team site libraries to sync automatically' but it doesn't seem to be syncing the SharePoint library when a user signs in... I've waited over 12 hours..

 

Not sure what I am missing here... we want to be able to sync the staff and student sharepoints when they sign in..

 

Thanks

Yes I have it working. The key is getting the Library IDs right. I used a script to get them as I wasn't seeing the 'Copy ID' text which the Microsoft document talks about. I found the script online from looking up about the messing text.
Posted
Yes I have it working. The key is getting the Library IDs right. I used a script to get them as I wasn't seeing the 'Copy ID' text which the Microsoft document talks about. I found the script online from looking up about the messing text.

 

 

I've tried a few scripts but could never get them to work... I used a Chrome Extension called SP Editor and it gives you loads of info from whatever SP site you are on... im pretty sure i got it correct.

 

How long does the sync take. The MS doc page says up to 8 hours... is that 8 hours per device? If it can take 8 hours, it will be useless for students using randoms devices....

Posted
I found it started syncing within 30 minutes. I'll check my settings on Monday so we can compare.

 

 

Thanks - I tried the script again and got it to run without any errors. I then converted the Unicode output to ASCII. I'll try that and see what happens.

 

Still 30 minutes is a long time, especially if a student needs to log in to grab a file quickly.. ill experiment and see what happens.

Thanks for your help.

Posted

I used to think the 30 minute/8 hour thing was stupid.. then I spent some time thinking about it..

 

If someone is on a machine for 40-60 minutes, why do they need to sync there SharePoint drives.. they can probably just do it within SharePoint using the online apps. It's only where a user is always on that device where syncing is necessary. Like a teacher or admin staff.

Posted

This is the Powershell code I run to get the library ID. You need to edit it a bit to point to the library you want to get the ID for:

 

$tenant = 'TenantURL' #Tenant name at the start of URL
$tenantId = 'TenantID' #Tenant ID, can be found in azure AD
$siteName = 'SiteName' #Sharepoint site name
$docLib = 'Library Name' #Sharepoint Document Library

#Connection
#$cred = Get-Credential -UserName $username -Message "Password: $username"
Connect-PnPOnline https://$tenant.sharepoint.com/sites/$siteName -UseWebLogin

#Convert Tenant ID
$tenantId = $tenantId -replace '-','%2D'

#Convert Site ID
$PnPSite = Get-PnPSite -Includes Id | select id
$PnPSite = $PnPSite.Id -replace '-','%2D'
$PnPSite = '%7B' + $PnPSite + '%7D'

#Convert Web ID
$PnPWeb = Get-PnPWeb -Includes Id | select id
$PnPWeb = $PnPWeb.Id -replace '-','%2D'
$PnPWeb = '%7B' + $PnPWeb + '%7D'

#Convert List ID
$PnPList = Get-PnPList $docLib -Includes Id | select id
$PnPList = $PnPList.Id -replace '-','%2D'
$PnPList = '%7B' + $PnPList + '%7D'
$PnPList = $PnPList.toUpper()

$FULLURL = 'tenantId=' + $tenantId + '&siteId=' + $PnPSite + '&webId=' + $PnPWeb + '&listId=' + $PnPList + '&webUrl=https%3A%2F%2F' + $tenant + '%2Esharepoint%2Ecom%2Fsites%2F' + $siteName + '&version=1'

Write-Output 'List ID: ' $FULLURL

 

This gives you the full code which doesn't need converting. Simply copy and paste in to the group policy rule for syncing libraries. We have one rule for all subjects and if a user doesn't have access to the library it just skips it.

  • Thanks 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...