create a Modern team site without office 365 group and make externally shareable using c# csom code.

%3CLINGO-SUB%20id%3D%22lingo-sub-282868%22%20slang%3D%22en-US%22%3Ecreate%20a%20Modern%20team%20site%20without%20office%20365%20group%20and%20make%20externally%20shareable%20using%20c%23%20csom%20code.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-282868%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20PnP%20library%20which%20i%20can%20use%20in%20my%20console%20application%20to%20create%20a%20Modern%20Team%20Site%20without%20an%20Office%20365%20group%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20can%20we%20apply%26nbsp%3B-SharingCapability%26nbsp%3B%20using%20c%23%20api%20code%20to%20the%20site%20collection.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EActually%20i%20am%20attempting%20to%20create%20a%20Modern%20team%20site%20without%20office%20365%20group%20and%20make%20externally%20shareable%20with%20external%20users%20using%20c%23%20csom%20code.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-282868%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-286763%22%20slang%3D%22en-US%22%3ERe%3A%20create%20a%20Modern%20team%20site%20without%20office%20365%20group%20and%20make%20externally%20shareable%20using%20c%23%20csom%20c%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-286763%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20create%20a%20site%20using%20PnP%20Core%20and%20pass%20in%20the%20site%20template%20STS%233%20for%20a%20modern%20team%20site%20without%20an%20Office%20365%20group.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-282889%22%20slang%3D%22en-US%22%3ERe%3A%20create%20a%20Modern%20team%20site%20without%20office%20365%20group%20and%20make%20externally%20shareable%20using%20c%23%20csom%20c%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-282889%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20modern%20site%20you%20are%20talking%20about%20in%20that%20case%20is%20the%20look%20and%20style%20of%20the%20modern%20page%20and%20modern%20libraries.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20does%20not%20require%20the%20Office%20Group%20capability%2C%20you%20can%20directly%20create%20the%20standard%20Teamsite%20(classical%20mode)%20and%20create%20a%20modern%20page%20into%20the%20sitepage%20library%20and%20set%20it%20as%20default%20page.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20is%20possible%20via%20CSOM%20code%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-provisioning-sites%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-provisioning-sites%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFab%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

Hi,

 

Is there a PnP library which i can use in my console application to create a Modern Team Site without an Office 365 group .

 

Also can we apply -SharingCapability  using c# api code to the site collection.

 

Actually i am attempting to create a Modern team site without office 365 group and make externally shareable with external users using c# csom code.

 

Thanks

2 Replies

The modern site you are talking about in that case is the look and style of the modern page and modern libraries.

 

That does not require the Office Group capability, you can directly create the standard Teamsite (classical mode) and create a modern page into the sitepage library and set it as default page.

 

That is possible via CSOM code:

 

Fab

Hi there,

 

You can create a site using PnP Core and pass in the site template STS#3 for a modern team site without an Office 365 group.