0

I have a SharePoint site named "source" and I want to create a duplicate site for it named "duplicate", so I ran the below commands:

Connect-PnPOnline -Url "https://*****.sharepoint.com/sites/source" -interactive

Get-PnPSiteTemplate -Out "PnP-Provisioning-File.xml"

Connect-PnPOnline -Url "https://****.sharepoint.com/sites/duplicate" -interactive

Invoke-PnPSiteTemplate -Path "PnP-Provisioning-File.xml"

But I have noted that these 2 things will not be copied:

  • Custom SharePoint groups which have custom permission levels, where I will get these errors on the SharePoint groups during the invoke process:
WARNING: Cannot find principal 'Source-PPM Contributors', cannot grant permissions
WARNING: Cannot find principal 'Source-PPM Contributors without Delete', cannot grant permissions
WARNING: Cannot find principal 'Source-PPM Contributors without Delete & Create', cannot grant permissions
  • List indexes

So is there a way to fix this?

1 Answer 1

0

I did the same with saving the site with the content as a template and recreating it. It contains everything, and inherits permissions from the parent site. I don't know if this is what you want.

1
  • saving site as template is not available in modern sites which have script disabled Commented Oct 14, 2023 at 23:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.