Moving a file server to SharePoint Online without breaking permissions
By Nubaris · Horb am Neckar, Germany · ~6 min read
Most companies I work with still have a file server humming away in a corner. It does its job, nobody thinks about it, and then one day the push to Microsoft 365 arrives and someone asks the obvious question: can we just move all of this to SharePoint?
The honest answer is yes, but not by dragging folders into a browser. A file server and a SharePoint document library look similar from the outside and behave very differently underneath. If you copy blindly, you find out the hard way, usually weeks later when a manager cannot open a file or a department suddenly has access to payroll.
Here is the approach that has worked for me across a number of migrations, and the traps worth knowing before you start.
Why a straight copy fails
A file server is a flat world of NTFS paths and ACLs. SharePoint is a web platform with its own rules, and three of them bite immediately.
Path length. SharePoint builds a URL for every file. The whole path has a practical ceiling around 400 characters, and each segment has its own limit. On a file server nobody notices a folder nested fifteen levels deep with a long department name. In SharePoint that same file simply refuses to upload. You want to find those paths before the migration, not during it.
Characters and names. Leading spaces, trailing dots, a handful of reserved characters, names like CON or PRN, plus the usual tilde lock files and Thumbs.db scattered everywhere. Some get silently renamed, some block the file. Either way you want a list up front.
Permissions. This is the big one. NTFS permissions are per folder, inherited, and tied to individual users and AD groups. SharePoint thinks in sites, libraries and groups, and its sweet spot is permissions at the site level, not a unique ACL on every subfolder. If you try to recreate a deep NTFS permission tree one to one, you end up with a fragile mess of broken inheritance that nobody can maintain. The clean move is to decide, per folder that becomes a site or library, which Entra group gets edit and which gets read, and set it there.
The sequence that works
After a few painful early attempts, I settled on a fixed order.
1. Inventory and check, before anything moves. Walk the source and produce a report: files and total size, the longest target paths, names that will not survive, files over the SharePoint limit, and for each planned site the groups that are supposed to get access. The point is to see every problem while the source is still untouched and you can still fix a name or shorten a folder.
2. Map folders to targets. Not every top level folder deserves its own site. Decide which shares become sites, which become libraries inside a site, and which are just folders. A spreadsheet with source path, target site, member group and visitor group is enough, and it doubles as your documentation.
3. Provision sites with their permissions. Create the target sites from a template, set the language, owner and time zone once in your defaults, then assign the Entra groups: members get edit, visitors get read. Doing this as part of the migration, not as a separate manual chore afterwards, is what keeps permissions correct and repeatable.
4. Copy, and keep the source read only. The source should never change during a migration. Everything happens in the target tenant, and only after you have checked and confirmed. Copy into the right library and folder, preserve the created and modified dates where it matters.
5. Run it again until cut over. A real migration is never a single pass. People keep working on the file server while you prepare. So the copy has to be incremental: on the second and third run it only transfers files that are new or changed, and skips everything untouched. On cut over day the final delta run takes minutes instead of hours.
Free tooling, and where it ends
You do not need an expensive suite to do this. Microsoft ships PnP.PowerShell, a free, open source module that talks to SharePoint and handles the provisioning and the copy. If you are comfortable in PowerShell you can script the whole thing: enumerate the source, check names and path lengths, create sites, resolve groups through Microsoft Graph, and copy with a delta check.
ShareGate is the well known commercial option. It is genuinely good and fast, with detailed reports, and if your organisation already owns it, use it. The point is that it is not a requirement. Both roads lead to the same place.
What takes time is not the copy. It is the checking, the mapping and getting the permissions right, over and over, without a visible console full of red text in front of the customer.
The checklist I keep
- Scan for path length and illegal names first, fix at the source.
- Decide the site and library structure before you touch SharePoint.
- Permissions at the site level with Entra groups, not folder by folder.
- Keep the source read only during the whole migration.
- Always copy incrementally so repeated runs stay cheap.
- Do a dry cut over once, so the real one holds no surprises.
Where FolderLift fits
I do these migrations as part of my IT work, and after scripting the same checks for the third time I packaged them into a small Windows tool called FolderLift. You sign in with your Microsoft 365 account, pick a folder on the left and a SharePoint target on the right, and it checks everything before a single file moves: names, path length, oversized files, missing groups. New sites are created with their permissions, the copy runs incrementally, and the source is only ever read.
It uses PnP.PowerShell under the hood, works with or without ShareGate, and needs no app registration of your own. There is a free 30 day trial, so you can run the checks against your own file server and see what a migration would actually look like before you commit to anything.
The real lesson is the sequence: check first, map deliberately, set permissions at the site, and migrate incrementally. Do that and moving off the file server stops being a gamble.
Try FolderLift free for 30 days