Forum Discussion
WYellow
Apr 03, 2023Brass Contributor
Template SharePoint Library?
Is it possible to create a template document library? Which when a new SharePoint site (or MS Teams) is created it uses that template document library? E.g., the template document library has de...
lsittler
Apr 04, 2023Brass Contributor
Hi WYellow,
Here, it seems the same subject as yours with a Microsoft answer: https://answers.microsoft.com/en-us/msoffice/forum/all/how-can-i-create-a-document-library-template-in/6aef9586-3bdd-4f65-a9e6-5e488b82b73e
The conclusion is: currently, no easy way - to create a Template by script or automation.
- https://pnp.github.io/powershell/: extract existing library as Template (XML) and import it to another site
- https://pnp.github.io/cli-microsoft365: script the configuration of your library
- Power Automate / Logic App: you can use REST API to create or use an existing library and apply all settings
Hoping this information will help you 🙂