Forum Discussion

Gleb Krylov's avatar
Gleb Krylov
Copper Contributor
Aug 31, 2017
Solved

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?

10 Replies

  • 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 Krylov's avatar
      Gleb Krylov
      Copper 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.

      https://technet.microsoft.com/en-us/library/ff607613.aspx

  • Dean_Gross's avatar
    Dean_Gross
    Silver 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

  • 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 Krylov's avatar
      Gleb Krylov
      Copper Contributor

      Yes, I want include all data and all permissions

      • Pieter Veenstra's avatar
        Pieter Veenstra
        MVP

        PnP PowerShell doesn't copy the data. You might have to use some 3rd party tool to do this.