Jump to content

Recommended Posts

Posted

Hi All,

 

I'm trying to test pre-syncing SharePoint Online document libraries but the documentation stays I need a library ID. To get this I need to click on 'Sync' and then when the 'Getting ready to sync' box appears click on 'Copy library ID'. However, I only see this box when I click on sync:

Sync.PNG

 

I've tried in Edge & Chrome, I get the same of very similar message. If I click on 'Sync' it simply opens OneDrive and syncs.

 

This is the Microsoft documentation I'm trying to follow:

https://docs.microsoft.com/en-us/onedrive/use-group-policy#AutoMountTeamSites

 

Can I ask other people to try clicking on Sync and see what they get?

 

Thanks, Rob

Posted

I think thats the old interface, Sharepoint now has a modern view which looks a bit different.

 

When you click sync in the new interface and then get the prompt to launch onedrive, hitting cancel shows:

sharepoint sync.png

  • Thanks 1
Posted (edited)

Hi @robyholmes

We've got a PowerShell script that automatically syncs SharePoint libraries via the OneDrive client upon user logon. You'll need the following: SiteID, WebID, ListID, URL, WebTitle and ListTitle. Please see below for basic guidance on how to find each.

SiteID: School's SharePoint URL + _api/Site

Example: https://365.sharepoint.com/sites/SchoolName/_api/Site

Search for: d:IdSiteID will be string of characters between and

 

WebID: School's SharePoint URL + _api/web

Example: https://365.sharepoint.com/sites/SchoolName/_api/web

Search for: d:IdSiteID will be string of characters between and

 

ListID: School's SharePoint URL + _api/web/Lists/getbytitle('NAMEOFTHELIBRARY')

Example: https://365.sharepoint.com/sites/SchoolName/_api/web/Lists/getbytitle('NAMEOFTHELIBRARY')

Insert %20 for any spaces in the document library name

Search for d:IdListID will be string of characters between and

 

URL: Web address of your school's main SharePoint site.

 

WebTitle: Name of your school (can be what you want).

 

ListTitle: Name of document library (can be what you want).

Cheers.

Thimon

Edited by thimon
Posted (edited)

Sorry to ask this here but it's slightly relevant, if you setup automatic sync of SharePoint does it download the whole sites documents?

 

We use OneDrive here and are just getting started with SharePoint so can see us replacing network drives but don't want the whole drive downloading to laptops, ideally it would use files on demand for SharePoint?

Edited by mullet_man
Posted
Enable Files on Demand via GPO. When OneDrive is synced (as well as SharePoint libraries) the files appear as place holders and don’t take up any storage space, you can then manually select files and folders and download them.
Posted
To clarify, the automatic syncing of SharePoint libraries via the OneDrive client uses Files on Demand to take up no storage space on the device. You then have the choice to download folders for offline use.
  • Thanks 1
Posted
To clarify, the automatic syncing of SharePoint libraries via the OneDrive client uses Files on Demand to take up no storage space on the device. You then have the choice to download folders for offline use.
Thanks! So if OneDrive has files on demand off and I synced a SharePoint library it wouldnt download the whole documents?
Posted
Hi @robyholmes

We've got a PowerShell script that automatically syncs SharePoint libraries via the OneDrive client upon user logon. You'll need the following: SiteID, WebID, ListID, URL, WebTitle and ListTitle. Please see below for basic guidance on how to find each.

SiteID: School's SharePoint URL + _api/Site

Example: https://365.sharepoint.com/sites/SchoolName/_api/Site

Search for: d:IdSiteID will be string of characters between and

 

WebID: School's SharePoint URL + _api/web

Example: https://365.sharepoint.com/sites/SchoolName/_api/web

Search for: d:IdSiteID will be string of characters between and

 

ListID: School's SharePoint URL + _api/web/Lists/getbytitle('NAMEOFTHELIBRARY')

Example: https://365.sharepoint.com/sites/SchoolName/_api/web/Lists/getbytitle('NAMEOFTHELIBRARY')

Insert %20 for any spaces in the document library name

Search for d:IdListID will be string of characters between and

 

URL: Web address of your school's main SharePoint site.

 

WebTitle: Name of your school (can be what you want).

 

ListTitle: Name of document library (can be what you want).

Cheers.

Thimon

 

Does your PowerShell script map single libraries or does it do multiple ones?

 

I’ve got a PS script to map each individual shared library for departments but would love something where I could add multiple ones together to simplify the process.

Posted
Thanks! So if OneDrive has files on demand off and I synced a SharePoint library it wouldnt download the whole documents?

 

Correct. It doesn’t download anything, just place holders. You can right click folders or individual files for offline viewing.

  • Thanks 1
Posted
Does your PowerShell script map single libraries or does it do multiple ones?

 

I’ve got a PS script to map each individual shared library for departments but would love something where I could add multiple ones together to simplify the process.

 

As many libraries as you wish. I need to tidy it up a bit, currently the script is delayed 2 mins after logon to ensure the OneDrive client is automatically logged in. Need to find a way to check the registry to see if the client is logged in and running, then to execute the script if so.

Posted
Hi @robyholmes

We've got a PowerShell script that automatically syncs SharePoint libraries via the OneDrive client upon user logon. You'll need the following: SiteID, WebID, ListID, URL, WebTitle and ListTitle. Please see below for basic guidance on how to find each.

SiteID: School's SharePoint URL + _api/Site

Example: https://365.sharepoint.com/sites/SchoolName/_api/Site

Search for: d:IdSiteID will be string of characters between and

 

WebID: School's SharePoint URL + _api/web

Example: https://365.sharepoint.com/sites/SchoolName/_api/web

Search for: d:IdSiteID will be string of characters between and

 

ListID: School's SharePoint URL + _api/web/Lists/getbytitle('NAMEOFTHELIBRARY')

Example: https://365.sharepoint.com/sites/SchoolName/_api/web/Lists/getbytitle('NAMEOFTHELIBRARY')

Insert %20 for any spaces in the document library name

Search for d:IdListID will be string of characters between and

 

URL: Web address of your school's main SharePoint site.

 

WebTitle: Name of your school (can be what you want).

 

ListTitle: Name of document library (can be what you want).

Cheers.

Thimon

 

 

I was told by MS not to do this as we have over 1000 users and 5000 files, do you break this limit or are you under it?

Posted
I was told by MS not to do this as we have over 1000 users and 5000 files, do you break this limit or are you under it?

Smashed it. We've got other schools in our Trust that have gone over it with no adverse effects (touch wood).

Posted
Smashed it. We've got other schools in our Trust that have gone over it with no adverse effects (touch wood).

 

Could you share your powershell script please?

 

I'm trying this with GPO but its just not playing ball, not showing up in OneDrive - my MS support agent seems to have abandoned me on this matter too

 

3d.JPG

  • 2 weeks later...
  • 2 months later...
Posted
Hi @robyholmes I can't see 'Copy library ID' message either, however using the below you can get all the information you need.

[ATTACH=CONFIG]55690[/ATTACH]

 

Hi @thimon,

 

I'm not sure what your notes mean? Could you explain them for me? I might be having a thick moment to bare with me.

 

I'm also trying to use PowerShell to get the ID's but we use MFA which doesn't seem to work with the script I'm using. Grrr

Posted
Hi @robyholmes For example, if your school SharePoint Online site URL is https://o365.sharepoint.com/sites/schoolname then to get your WebID you would enter https://o365.sharepoint.com/sites/schoolname/_api/web into a web browser URL bar and press enter. You will get a huge list of text on the web page. Search (CTIRL+F) for d:Id within that page, then look for the characters between and which will be your site's WebID.
  • Thanks 1
Posted
Hi @robyholmes For example, if your school SharePoint Online site URL is https://o365.sharepoint.com/sites/schoolname then to get your WebID you would enter https://o365.sharepoint.com/sites/schoolname/_api/web into a web browser URL bar and press enter. You will get a huge list of text on the web page. Search (CTIRL+F) for d:Id within that page, then look for the characters between and which will be your site's WebID.

 

Great, thank you.

 

At the minute I think I've got the script from this site working which has given me the ID I hopefully need. Now its a waiting game to see if it applies and works...fingers crossed.

https://www.blackforce.co.uk/2019/06/07/automatically-sync-microsoft-sharepoint-team-site-libraries-now-live#:~:targetText=Click%20OneDrive%20under%20user%20configuration,ID%20in%20the%20Value%20field.

  • Thanks 1
Posted

Has anyone managed to get the policy "Configure team site libraries to sync automatically" working at all?

 

I am trying to get this to map through an InTune policy as I am trying to avoid any custom scripts.

Posted

I've managed to get it working through GPO, it does take a while to sync the libraries, but it finally did it for me. I used the script mentioned earlier to get the library ID and then ran the powershell command on the Microsoft Document for using GPO and OneDrive Client which gets rid of all the % characters.

 

[uri]::UnescapeDataString("Copied String")

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