SOLVED

Site provisioning

%3CLINGO-SUB%20id%3D%22lingo-sub-14017%22%20slang%3D%22en-US%22%3ESite%20provisioning%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14017%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EWe%20have%20site%20provisioning%20process%20which%20created%20SharePoint%20online%20sites.%20Provisioning%20works%20just%20fine.%20My%20question%20is%20-%20is%20it%20possible%20to%20include%20few%20extra%20tasks%20to%20site%20provisioning%20or%20right%20after%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20what%20I%20want%20to%20achieve%3A%3C%2FP%3E%3CP%3E1)%20the%20request%20access%20is%20set%20by%20default%20someone%40microsoft.com.%20I%20liked%20to%20change%20this%20automatically%26nbsp%3B%3C%2FP%3E%3CP%3E2)%20Also%20I%20liked%20to%20add%20a%20new%20app%20to%20the%20site%20-%20it%20is%20just%20another%20document%20library%3C%2FP%3E%3CP%3E3)%20and%20finally%20I%20liked%20to%20change%20the%20metadata%20of%20sitepages%20library%20site%20called%20metadata.aspx%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20need%20quidance%20how%20to%20do%20this%2C%20just%20opinion%20is%20this%20possible%20to%20automate%20is%20enough.%20But%20if%20you%20like%20to%20tell%20how%2C%20that%20is%20totally%20up%20to%20you%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-14070%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20provisioning%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-14070%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20absolutely%20possible%20and%20quite%20common%20scenario.%20This%20is%20exactly%20what%20the%20remote%20provisioning%20patterns%20introduced%20in%20SharePoint%20Patterns%20and%20Practices%20are%20doing%20either%20using%20code%20(self-service)%20or%20by%20using%20PnP%20PowerShell%20(admin%20driven).%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETypical%20process%20is%20that%20you%20provision%20oob%20team%20site%20%2F%20oob%20publishign%20site%20and%20then%20you%20apply%20the%20needed%20modifications%20on%20top%20of%20the%20oob%20site%20by%20using%20remote%20APIs.%20These%20could%20include%20all%20of%20the%20setting%20what%20you%20have%20mentioned%2C%20since%20those%20are%20exposed%20with%20SharePoint%20Online%20CSOM%20-%20it's%20just%20matter%20of%20calling%20the%20needed%20code%20%2F%20script%20after%20site%20provisioning.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi all,

We have site provisioning process which created SharePoint online sites. Provisioning works just fine. My question is - is it possible to include few extra tasks to site provisioning or right after it?

 

This is what I want to achieve:

1) the request access is set by default someone@microsoft.com. I liked to change this automatically 

2) Also I liked to add a new app to the site - it is just another document library

3) and finally I liked to change the metadata of sitepages library site called metadata.aspx

 

I don't need quidance how to do this, just opinion is this possible to automate is enough. But if you like to tell how, that is totally up to you :)

1 Reply
Best Response confirmed by Anna-Maria Kähkönen (Contributor)
Solution

This is absolutely possible and quite common scenario. This is exactly what the remote provisioning patterns introduced in SharePoint Patterns and Practices are doing either using code (self-service) or by using PnP PowerShell (admin driven). 

 

Typical process is that you provision oob team site / oob publishign site and then you apply the needed modifications on top of the oob site by using remote APIs. These could include all of the setting what you have mentioned, since those are exposed with SharePoint Online CSOM - it's just matter of calling the needed code / script after site provisioning.