It’s important to keep branding consistent across SharePoint Sites. Family members can create travel sites and it will be provisioned with the correct colors, icons and travel lists.
We have crated a Site Script and a site design and deployed it to the SharePoint site for D365 Family Engagement Hub. When a family is planing a new vaication or travel they can create a new site that already have lists they need to plan their stay.
Site Script
First we set the script by identifying the lists with name, description and fields.
![](https://acdc.blog/wp-content/uploads/2021/02/image-106-944x1024.png)
Then the final line to add the script
Add-SPOSiteScript -Title “Family Travel Site” -Content $site_script -Description “Create a list for to keep up with traveling family memebers”
The response was a site script with ID
![](https://acdc.blog/wp-content/uploads/2021/02/image-108.png)
The ID we used in the adding a site design with the site script
Add-SPOSiteDesign -Title “D365 Family Engagement Hub – Travel Site” -WebTemplate “64” -SiteScripts “1131785c-864c-4262-a3ae-b2c9664bfcb6” -Description “The travel site is for planning a trip or travel for the family”
Response
![](https://acdc.blog/wp-content/uploads/2021/02/image-110.png)
The result was a site design that we can use from the user interface or use another live of powershell to set on a site:
Add-SPOSiteDesignTask -SiteDesignId c56a394b-a99b-4b75-8e93-01a927b7ccf6 -WebUrl “https://crm017179.sharepoint.com/sites/family“
The result was a report of what design, web and site was combined:
![](https://acdc.blog/wp-content/uploads/2021/02/image-109.png)
When we visit the site we can see that it has two new lists:
![](https://acdc.blog/wp-content/uploads/2021/02/image-111-1024x533.png)
The packing list contain the fields that we set:
![](https://acdc.blog/wp-content/uploads/2021/02/image-112-1024x573.png)
IF family members want to create new sites they can now choose this travel site design:
![](https://acdc.blog/wp-content/uploads/2021/02/image-113-1024x573.png)
That is good user experience!
Used this guide for PowerShell scripts: Get started creating SharePoint site designs and site scripts | Microsoft Docs
Grant access to user group
This script will exclude access to all users but those who are members of this specific user group (email enabled) “family Members”
![](https://acdc.blog/wp-content/uploads/2021/02/image-211-1024x647.png)
![](https://acdc.blog/wp-content/uploads/2021/02/image-210.png)
Doing the Get to validate that the permissions were set.
When the users NOT in this group try to use the site design they will not see it – making it possible to family users only to access the site script and site design.
We claim these badges
![](https://acdc.blog/wp-content/uploads/2021/02/ACDC-Craftsman-1024x306.png)
![](https://acdc.blog/wp-content/uploads/2021/02/GetImage-2.png)
![](https://acdc.blog/wp-content/uploads/2021/02/Badges-2014-39-Powershell-1.png)
and for the category
![](https://acdc.blog/wp-content/uploads/2021/02/70825-2.jpg)