Export and Import SharePoint site using Get-PnPSiteTemplate & Invoke-PnPSiteTemplate will not preserve the value of the people/group field #5177
Unanswered
mvcsharepointdev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a SharePoint source site which contain a People/Group field linked to a SharePoint group named "Level2", as follow:-
now i export the site using this powershell:-
Get-PnPSiteTemplate -Out "c:\users\mo\site.xml"then i created a new site, apply the template using this powershell:-
Invoke-PnPSiteTemplate -Path "c:\users\mo\site.xml"but on the destination SharePoint site this field will be linked to all users instead of been linked to the related group (Level2), although the Level2 group was imported successfully. any advice, how to preserve this setting?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions