robyholmes Posted August 2, 2019 Posted August 2, 2019 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: 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
ZeroHour Posted August 2, 2019 Posted August 2, 2019 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: 1
robyholmes Posted August 2, 2019 Author Posted August 2, 2019 Interesting I thought we were on the new interface, thanks I'll check that.
thimon Posted August 6, 2019 Posted August 6, 2019 (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 August 6, 2019 by thimon
mullet_man Posted August 6, 2019 Posted August 6, 2019 (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 August 6, 2019 by mullet_man
thimon Posted August 6, 2019 Posted August 6, 2019 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.
thimon Posted August 6, 2019 Posted August 6, 2019 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. 1
mullet_man Posted August 8, 2019 Posted August 8, 2019 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?
psumner1992 Posted August 8, 2019 Posted August 8, 2019 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.
thimon Posted August 9, 2019 Posted August 9, 2019 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. 1
thimon Posted August 9, 2019 Posted August 9, 2019 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.
chrisjako Posted August 9, 2019 Posted August 9, 2019 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?
thimon Posted August 9, 2019 Posted August 9, 2019 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).
chrisjako Posted August 9, 2019 Posted August 9, 2019 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
thimon Posted August 9, 2019 Posted August 9, 2019 Hi Chis. I'm off for a week but will have a look at sharing it when I'm back.
thimon Posted August 19, 2019 Posted August 19, 2019 Hi @psumner1992 @chrisjako I've edited our SharePoint Sync script to take out our school's info. I you want to PM me your email addresses I can send it over to you. Cheers!
robyholmes Posted November 18, 2019 Author Posted November 18, 2019 Hi All, Sorry for bring back at old thread but I've now got time to look at this again and I'm still not able to see the 'Copy library ID' message. I've opened a support case with Microsoft so I'll let you know how I get on. However I fear they will just point to this and saying its 'On-going' https://github.com/MicrosoftDocs/OfficeDocs-SharePoint/issues/1326
thimon Posted November 18, 2019 Posted November 18, 2019 (edited) Hi @robyholmes I can't see 'Copy library ID' message either, however using the below you can get all the information you need. Edited November 18, 2019 by thimon
robyholmes Posted November 18, 2019 Author Posted November 18, 2019 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
thimon Posted November 18, 2019 Posted November 18, 2019 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. 1
robyholmes Posted November 18, 2019 Author Posted November 18, 2019 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. 1
TJ-Diggers Posted November 19, 2019 Posted November 19, 2019 Hi @thimon any change I could get this script? Thanks
thimon Posted November 20, 2019 Posted November 20, 2019 Hi @TJ-Diggers PM me your details and I'll send it on over. FYI it's very much a testing script, we haven't deployed it.
lmrogers Posted November 20, 2019 Posted November 20, 2019 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.
dezt Posted November 25, 2019 Posted November 25, 2019 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")
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now