Creating a SharePoint Online Site Template with Complete Content and Structure

Mohammed Ebrahim 0 Reputation points
2025-08-05T19:29:07.4466667+00:00

What are the steps to create a SharePoint Online site template that includes everything from an existing site, such as files, homepage layout, and a Planner plan?

The requirements are as follows:

  1. The new site should include all files and folders structure from the source site's document libraries.
  2. The template should replicate the homepage (modern page layout, web parts, and branding).
  3. A new site created from this template should also automatically create a Planner plan linked to the site's Microsoft 365 group.
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Hani-N 1,460 Reputation points Microsoft External Staff Moderator
    2025-08-05T20:51:20.7866667+00:00

    Hi @Mohammed Ebrahim

    I hope you're doing well.

    Based on your request regarding creating a SharePoint Online site template that includes full content, homepage layout, and a linked Planner plan, this functionality isn’t fully supported natively through site scripts or site designs. These tools are great for replicating structure (like lists, libraries, branding, and page layouts), but they don’t currently support copying actual content (such as files in document libraries or Planner plans).

    That said, there are workarounds available using PnP PowerShell and Microsoft Graph API. These tools allow you to:

    • Recreate the homepage layout and structure.
    • Copy files and folders from a source site.
    • Automate the creation of a Planner plan linked to the site’s Microsoft 365 Group.

    Here’s a simplified example of how this can be done using PnP PowerShell:

    # Connect to SharePoint
    Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/YourSite" -Interactive
    
    # Create a new site
    New-PnPSite -Type TeamSite -Title "New Project Site" -Alias "newprojectsite"
    
    # Apply a provisioning template
    Apply-PnPProvisioningTemplate -Path "template.xml"
    
    # Copy files from source to target
    Copy-PnPFile -SourceUrl "/sites/sourceSite/Shared Documents/file.docx" -TargetUrl "/sites/newprojectsite/Shared Documents/file.docx"
    

    Please note: This script is just a template. It will need to be customized based on your specific site structure, content, and business requirements.

    As this is a community forum, I can only provide guidance and templates. For more tailored assistance, I recommend creating a support ticket with Microsoft. This will allow you to work directly with a SharePoint engineer who can help you implement the solution based on your environment.

    Here’s how you can create a support ticket for more personalized assistance:

    1. Go to Microsoft 365 Admin Center.
    2. Sign in with your admin account.
    3. Navigate to Help & Support > Type in your request and description (Provide details about your scenario and request assistance with SharePoint site provisioning and Planner integration.)  > Contact support 

    Once you’ve submitted the ticket, feel free to share the case number with me. I’ll be happy to follow up or help coordinate if needed.


    As other users will also search information in this community, kindly mark it as an answer, your valuable vote will definitely also help other users who have similar queries easily to find the correct channel and useful information more quickly.   

    I appreciate your kind words.   User's image

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    0 comments No comments

  2. Hani-N 1,460 Reputation points Microsoft External Staff Moderator
    2025-08-08T21:05:16.1666667+00:00

    Good day @Mohammed Ebrahim

    I hope everything is running smoothly on your side. 

    I'm reaching out to follow up on the support thread we've been working on. I trust the steps I shared earlier have helped resolve the issue you were experiencing. However, if you're still encountering any difficulties or need assistance with something else, please feel free to reply to this message, I’ll be more than happy to assist. 

    Our priority is to ensure everything continues to function as expected and that your experience remains seamless. 

    Thank you once again for your patience and cooperation throughout the troubleshooting process. 

    Looking forward to your response. 

    Warm regards, 

     


    As other users will also search information in this community, kindly mark it as an answer, your valuable vote will definitely also help other users who have similar queries easily to find the correct channel and useful information more quickly.   

    I appreciate your kind words.  

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

     

    0 comments No comments

  3. Hani-N 1,460 Reputation points Microsoft External Staff Moderator
    2025-08-11T22:38:21.5266667+00:00

    Good day @Mohammed Ebrahim,  

    I hope you are having a great day 

    I'm reaching out again to follow up on your issue and check if everything has been resolved. My goal is to ensure your experience remains smooth and hassle-free. If you're still encountering any problems or have run into new challenges, please let me know which steps you're currently stuck on and happy to provide further help whenever you need it.  

    If you have any further questions, feel free to tag me in your reply so I can assist you directly. 

    Looking forward to your update. 

     


    As other users will also search information in this community, kindly mark it as an answer, your valuable vote will definitely also help other users who have similar queries easily to find the correct channel and useful information more quickly.    

    I appreciate your kind words.   

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

     

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.