Forum Discussion
Rachael Walker
May 08, 2019Copper Contributor
Sharepoint Script
Does anyone have a sharepoint script example for creating modern team sites and how to apply different features? An example would be great as I am new to sharepoint and taken on the admin roll.
We have a corporate hub with team sites for each department. I only want to use modern features since Microsoft is moving in that direction. We initially had a hub site for each department however we don't have the resources quite yet to manage it at this capacity. With that being said, I want to use it out of the box as much as possible.
Just to give an idea these are the main features we would like to use
-Assign to the corporate hub site
-add site column called data classification
-enabled document ID (I don't want our links to change but is this necessary in the modern setup?)
-add document library template and include data classification column and make it required.
- Pen WarnerCopper Contributor
Rachael Walker I would also recommend you look at PNP Provisioning Templates, Site Designs are great if you want to add a few features as Beau Cameron suggests, however I do hit some limitations.
https://github.com/SharePoint/PnP-Provisioning-Schema
I use both depending on the requirement...
Rachael Walker What you are looking for is Site Designs. They allow you to configure some basic actions to occur when creating a new site (creating lists, content types, columns, permissions, joining a hub site, etc...)
More Information Here
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview