Templates

The Templates tab lets you capture the structure and configuration of an existing SharePoint Online site and re-apply that configuration to new sites. This is useful for standardizing site setups across a department or project portfolio.


Overview

Templates in SharePoint ToolBox are lightweight JSON snapshots of selected aspects of a site, which the tool can replay when creating a new site. All templates are stored in Sharepoint_Templates.json in the configured data folder.


What a Template Captures

ElementDescriptionOptional
Folder structureAll document libraries and their folder hierarchiesYes
PermissionsSharePoint groups and their assigned permission levelsYes
Site settingsSite title and language (LCID)Yes
LogoSite logo image (stored as base64 inside the JSON)Yes

Each element can be individually included or excluded both when capturing and when applying a template. You can capture everything from a source site but only apply the folder structure to the new site, for example.


Capture Workflow

Step 1 — Connect to the Source Site

Connect to the site you want to use as a source (see Connection and Profiles). Make sure only one site is selected.

Step 2 — Open the Templates Tab

Switch to the Templates tab.

Step 3 — Click "Capture Template"

A dialog opens with checkboxes for each capturable element. Select the elements you want to capture and click OK.

Step 4 — Name the Template

Enter a descriptive name (e.g., HR Department Standard) and click Save. The template is written to Sharepoint_Templates.json.


Apply Workflow

Step 1 — Decide the Target

You can apply a template to a new site created by the tool (Communication or Teams type) or to an existing site you are already connected to.

Step 2 — Create a New Site (Optional)

  1. Click New Site from Template.
  2. Select Communication site or Teams site.
  3. Enter the new site's title and URL alias.
  4. Click Create.

Step 3 — Select Elements to Apply

A checklist appears showing which elements are available in the chosen template. Uncheck any elements you do not want to apply, then click Apply.


Template File Format

[
  {
    "Name": "HR Department Standard",
    "CapturedAt": "2025-11-15T10:32:00",
    "SourceSiteUrl": "https://contoso.sharepoint.com/sites/HR",
    "FolderStructure": [
      {
        "Library": "Shared Documents",
        "Folders": ["Policies", "Procedures", "Templates"]
      }
    ],
    "Permissions": [
      { "GroupName": "HR Members", "PermissionLevel": "Edit" }
    ],
    "SiteSettings": { "Title": "HR Portal", "Lcid": 1033 },
    "Logo": "data:image/png;base64,iVBORw0KGgo..."
  }
]

Limitations


Managing Templates

See Also