Add WSP Solution to Office 365 Group Site

%3CLINGO-SUB%20id%3D%22lingo-sub-44002%22%20slang%3D%22en-US%22%3EAdd%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44002%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20morning%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20workflow%20that%20utilizes%20a%20Solution%20to%20generate%20a%20templated%20subsite%20when%20a%20list%20item%20is%20created.%20This%20works%20great%20on%20non-Office%20365%20Group%20SharePoint%20sites%2C%20but%20I%20was%20hoping%20to%20utilize%20the%20other%20features%20of%20Groups%26nbsp%3Band%20still%20have%20the%20benefits%20of%20the%20subsite%20setup%20that%20I%20have%20in%20place.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20understand%20I%20am%20blocked%20from%20doing%20this%20from%20the%20GUI%2C%20which%20is%20fine%20because%20I%20want%20to%20do%20it%20from%20PowerShell%20(PnP)%20anyway.%20I'm%20trying%20to%20use%20Install-PnPSoltion%20but%20am%20getting%20a%26nbsp%3Bpermissions%20error.%20I'm%20an%20owner%20of%20the%20Group%26nbsp%3B(and%20actually%20manually%20gave%20myself%20Administrator%20access).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHelp%3F%20Is%20this%20possible%3F%20Should%20I%20do%20this%20another%20way%3F%20Where%20should%20the%20WSP%20Template%20be%20stored%20for%20use%20in%20my%20Powershell%20script%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44080%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44080%22%20slang%3D%22en-US%22%3EIndeed%20you%20can%20see%20the%20Web%20Job%20as%20a%20package%20you%20upload%20to%20Azure%20Web%20Sites%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44075%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44075%22%20slang%3D%22en-US%22%3EThank%20you.%20I%20seem%20to%20think%20that%20my%20current%20strategy%20is%20no%20good.%20The%20Web%20Job%20and%20PNP%20CMDLets%2C%20would%20they%20be%20a%20series%20of%20actions%20that%20would%2C%20individually%2C%20create%20the%20site%20the%20way%20I%20want%20it%3F%20Is%20there%20any%20other%20way%20to%20do%20this%20in%20a%20package%2C%20or%20is%20that%20functionality%20gone%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44074%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44074%22%20slang%3D%22en-US%22%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44060%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44060%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20to%20confirm%20and%20provide%20some%20additional%20resouces.%20Like%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3Bmentioned%2C%20modern%20SP%20sites%20are%20different%20and%20since%20they%20have%20%22noscript%22%20setting%20enabled%2C%20you%20cannot%20use%20sandbox%20solutions%20with%20them.%20Your%20can%20find%20supported%20and%20non-supported%20features%20from%20following%20MSDN%20article.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Fpnp_articles%2Fmodern-experience-customizations-customize-sites%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3ECustoming%20%22modern%22%20team%20sites%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44053%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44053%22%20slang%3D%22en-US%22%3EOne%20approach%20could%20be%20to%20use%20a%20Web%20Job%20published%20in%20Azure%20that%20just%20reads%20the%20subsite%20definition%20extracted%20by%20means%20of%20the%20PnP%20cmdlets%20and%20apply%20it%20when%20creating%20the%20new%20sites....the%20Web%20Job%20is%20continuously%20polling%20the%20list%20to%20locate%20new%20requests%20so%20It%20can%20create%20the%20new%20site.%20Another%20approach%20coul%20be%20to%20create%20a%20service%20(a%20REST%20one)%20that%20do%20exactly%20the%20same%20and%20it's%20called%20by%20a%20Flow%20attached%20to%20the%20list...of%20course%2C%20you%20could%20call%20also%20this%20same%20service%20from%20a%20SharePoint%20workflow.%20If%20you%20ask%20my%20recommendation%2C%20the%20first%20one%20is%20much%20more%20easy%20to%20get%20it%20working%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44047%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44047%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20I%20want%20to%20spin%20up%20a%20subsite%20with%20a%20certain%20set%20of%20libraries%20(with%20content%20types)%20and%20lists%20in%20it%2C%20every%20time%20someone%20submits%20a%20list%20item.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20would%20you%20recommend%20I%20do%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44008%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44008%22%20slang%3D%22en-US%22%3EThat's%20not%20the%20way%20to%20go%3A%20using%20the%20save%20as%20template%20feature%20for%20sites...the%20scenario%20you%20are%20describing%20fits%20really%20well%20with%20the%20capabilities%20provided%20by%20the%20PnP%20Provisioning%20engine%20and%20cmdlets%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44006%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44006%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20save%20a%20site%20template%2C%20it%20saves%20it%20to%20the%20solutions%20gallery.%20I%20then%20want%20to%20populate%20that%20elsewhere%20(to%20about%20150%20other%20site%20collections%2C%20that%20are%20identical)%20using%20Powershell%2C%20or%20another%20method.%20This%20would%20allow%20me%20to%20make%20a%20change%20to%20one%20template%20and%20populate%20it%20elsewhere%20without%20having%20to%20do%20so%20manually.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-44005%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20WSP%20Solution%20to%20Office%20365%20Group%20Site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-44005%22%20slang%3D%22en-US%22%3EGroup%20sites%20are%20%22special%22%20sites%20and%20if%20PnP%20is%20dropping%20errors%20when%20trying%20to%20upload%20a%20WSP%20to%20the%20Sandbox%20solution%20gallery%20could%20be%20due%20to%20the%20fact%20is%20a%20not-supported%20operation.%20By%20the%20way%3A%20are%20you%20aware%20that%20Sandbox%20solutions%20are%20being%20deprecated%3F%20Not%20in%20the%20case%20of%20WSPs%20that%20contains%20declarative%20stuff%20(such%20as%20a%20workflow.%20How%20did%20you%20generate%20the%20WSP%20for%20the%20workflow%3F%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Good morning, 

 

I have a workflow that utilizes a Solution to generate a templated subsite when a list item is created. This works great on non-Office 365 Group SharePoint sites, but I was hoping to utilize the other features of Groups and still have the benefits of the subsite setup that I have in place.

 

I understand I am blocked from doing this from the GUI, which is fine because I want to do it from PowerShell (PnP) anyway. I'm trying to use Install-PnPSoltion but am getting a permissions error. I'm an owner of the Group (and actually manually gave myself Administrator access). 

 

Help? Is this possible? Should I do this another way? Where should the WSP Template be stored for use in my Powershell script?

 

Thanks.

 

 

9 Replies
Highlighted
Group sites are "special" sites and if PnP is dropping errors when trying to upload a WSP to the Sandbox solution gallery could be due to the fact is a not-supported operation. By the way: are you aware that Sandbox solutions are being deprecated? Not in the case of WSPs that contains declarative stuff (such as a workflow. How did you generate the WSP for the workflow?
Highlighted

When I save a site template, it saves it to the solutions gallery. I then want to populate that elsewhere (to about 150 other site collections, that are identical) using Powershell, or another method. This would allow me to make a change to one template and populate it elsewhere without having to do so manually.

Highlighted
That's not the way to go: using the save as template feature for sites...the scenario you are describing fits really well with the capabilities provided by the PnP Provisioning engine and cmdlets
Highlighted

So I want to spin up a subsite with a certain set of libraries (with content types) and lists in it, every time someone submits a list item. 

 

How would you recommend I do that?

Highlighted
One approach could be to use a Web Job published in Azure that just reads the subsite definition extracted by means of the PnP cmdlets and apply it when creating the new sites....the Web Job is continuously polling the list to locate new requests so It can create the new site. Another approach coul be to create a service (a REST one) that do exactly the same and it's called by a Flow attached to the list...of course, you could call also this same service from a SharePoint workflow. If you ask my recommendation, the first one is much more easy to get it working
Highlighted

Just to confirm and provide some additional resouces. Like @Juan Carlos González Martín mentioned, modern SP sites are different and since they have "noscript" setting enabled, you cannot use sandbox solutions with them. Your can find supported and non-supported features from following MSDN article.

 

Highlighted
Highlighted
Thank you. I seem to think that my current strategy is no good. The Web Job and PNP CMDLets, would they be a series of actions that would, individually, create the site the way I want it? Is there any other way to do this in a package, or is that functionality gone?

Thanks.
Highlighted
Indeed you can see the Web Job as a package you upload to Azure Web Sites