After much experimentation, I fail to see the difference between Sync and "Add shortcut to OneDrive". Does anyone know why you would use one over the other?
I've created 3 document libraries in SharePoint:
DocLib_01: I've used Sync for this library
DocLib_02: I've used "Add shortcut to OneDrive" for this library
DocLib_03: I've set the advanced setting "Allow items from this document library to be downloaded to offline clients?" to No. This makes the Sync option disappear in the menu, but the "Add shortcut to OneDrive" option remains. I've used "Add shortcut to OneDrive" for this library.
My OneDrive Sync client is configured for "Files on Demand".
In File Explorer the file status is as follows:
DocLib_01: Blue Cloud (i.e file only exist on SharePoint, even though files are synced)
DocLib_02: Blue Cloud (i.e files only exist on SharePoint, this makes sense as I'm only linking to this library)
DocLib_03: An error appears when trying to access this folder (downloading isn't allowed, why am I allowed to create the link in the first place?)
If I edit a file in DocLib_01 the file is downloaded to my local drive and the status icon changes to a Green Tick. I'd prefer the download to be automatic but would have to turn off Files on Demand.
If I edit a file in DocLib_02 the file is downloaded to my local drive and the status icon changes to a Green Tick. I don't want the file to be download, I'd like it just to exist on SharePoint.
In other words Sync/Add shortcut to OneDrive appear to do exactly the same thing.
If I turn off the "Files on Demand" Feature the sync client appears to start downloading Files to DocLib_01 and DocLib_02.
This makes no sense to me. If I sync a folder I'd expect that folder always to be available even if I'm offline. However, if I use "shortcut to OneDrive" to reference a folder I would expect that folder to only ever be available when I'm online. If both options work in exactly the same way what's the point in having them? Additionally, with regard to DocLib_03, why am I allowed to create a "shortcut to OneDrive" link when that link will never work. Surely that option should be hidden just like sync is?
Some background, my employer is getting rid of our on-prem file servers and moving all our files to SharePoint. Our users still like to work in File Explorer to manage their files however. I assumed that the "Add shortcut to OneDrive" option would act like a traditional network drive mapping of old, i.e files would not be available when off-line.
I think my requirement is pretty simple - I should be able to see all SharePoint Files in File Explorer when I'm online. If I open these files via File Explorer, they should stay on SharePoint and not be copied down to the local device (in my view, this is what "shortcut to OneDrive" should do). If I have files that I'm currently working on, I should be able to make them automatically available offline (sync does this if Files on Demand is turned off).
Am I missing something here? I actually preferred the old WebDAV/Internet Explorer solution which allowed you to map SharePoint document libraries easily in File Explorer. The OneDrive Sync client has a lot of flaws and is irritating to use IMO. :(