Forum Discussion
Is it possible to migrate one list with all permissions to another farm?
Is it possible to migrate one list with all permissions to another farm?
I was advised to do it by PNP PowerShell but as I understood PnP allows to migrate whole sites not lists separatly. Or is it possible to do it by PnP?
You could have a look at the Tenant Migration sample in PnP PowerShell.
I've made a start with copying the data as well.
https://github.com/SharePoint/PnP-PowerShell/tree/master/Samples/Tenant.Migration
Do you want to include the data?
PnP PowerShell can do the structure of the list.
Simply export the whole site and then edit the resulting xml manually, so that only the list is included.
- Gleb KrylovCopper Contributor
Yes, I want include all data and all permissions
PnP PowerShell doesn't copy the data. You might have to use some 3rd party tool to do this.
- Dean_GrossSilver Contributor
In a meeting last week, Erwin van Hunen stated that PnP was not intended for content migration, he had intentionally excluded that from the scope of the cmdlets
- You could also try to use the trial version of a migration tool...
- Matti PaukkonenIron Contributor
Are both on-premises SharePoint farms?
If so, you can always use Export-SPWeb cmdlet.
Couple of examples here: https://blogs.technet.microsoft.com/fromthefield/2016/07/14/export-spweb-exporting-lists/
- Gleb KrylovCopper Contributor
Export and Import command do not work if a list has unique permissions.
Here, what is written about parameter IncludeUserSecurity - Preserves the user security settings except for SPLists that have broken inheritance and item level permissions set.