pnp schema template issue - how to inlcude “new and existing guests” option in the schema

%3CLINGO-SUB%20id%3D%22lingo-sub-1173139%22%20slang%3D%22en-US%22%3Epnp%20schema%20template%20issue%20-%20how%20to%20inlcude%20%E2%80%9Cnew%20and%20existing%20guests%E2%80%9D%20option%20in%20the%20schema%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1173139%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20not%20finding%20the%20right%20XML%20schema%20to%20include%20it%20in%20my%20PNP%20provisioning%20template.%3C%2FP%3E%3CP%3EHow%20can%20I%20include%20settings%20called%20%22%3CSTRONG%3ENew%20and%20existing%20guests%3C%2FSTRONG%3E%22%20for%20external%20sharing%20while%20provisioning%20a%20site%20using%20pnp%20provisioning%20template%3F%3C%2FP%3E%3CP%3EI%20am%20not%20sure%20where%20to%20add%20exactly%20here%3F%20I%20also%20heard%20that%20we%20can%20include%20%3CSTRONG%3Edocuments%3C%2FSTRONG%3E%20in%20PNP%20provisioning%20template%2C%20but%20I%20am%20getting%20error%20as%20an%20invalid%20template%20if%20I%20include%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%233366FF%22%3E%3CEM%3E%3CSPAN%20class%3D%22tag%22%3E%3CPROVISIONING%3E%3C%2FPROVISIONING%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3Exmlns%3Apnp%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22%3CA%20href%3D%22http%3A%2F%2Fschemas.dev.office.com%2FPnP%2F2020%2F02%2FProvisioningSchema%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fschemas.dev.office.com%2FPnP%2F2020%2F02%2FProvisioningSchema%3C%2FA%3E%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22tag%22%3E%26gt%3B%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22tag%22%3E%3CPREFERENCES%3E%3C%2FPREFERENCES%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EGenerator%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22OfficeDevPnP.Core%2C%20Version%3D3.18.2002.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D5e633289e95c321a%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22tag%22%3E%2F%26gt%3B%3C%2FSPAN%3E%20%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%233366FF%22%3E%3CEM%3E%3CSPAN%20class%3D%22tag%22%3E%3CTEMPLATES%3E%3C%2FTEMPLATES%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EID%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22CONTAINER-TEMPLATE-1AFCA687C58D4033A2FEC5FDA9F29256%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22tag%22%3E%26gt%3B%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22tag%22%3E%3CPROVISIONINGTEMPLATE%3E%3C%2FPROVISIONINGTEMPLATE%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EID%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22TEMPLATE-1AFCA687C58D4033A2FEC5FDA9F29256%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EVersion%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%221%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EBaseSiteTemplate%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22GROUP%230%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EScope%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22RootSite%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22tag%22%3E%26gt%3B%3C%2FSPAN%3E%20%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%233366FF%22%3E%3CEM%3E%3CSPAN%20class%3D%22tag%22%3E%3CWEBSETTINGS%3E%3C%2FWEBSETTINGS%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ERequestAccessEmail%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ENoCrawl%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22false%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EWelcomePage%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22SitePages%2FHome.aspx%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ESiteLogo%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22%7Bsite%7D%2F_api%2FGroupService%2FGetGroupImage%3Fid%3D'303de100-57ea-4199-b48f-34ddb222df78'%26amp%3Bamp%3Bhash%3D637170283721262427%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EAlternateCSS%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EMasterPageUrl%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22%7Bmasterpagecatalog%7D%2Fseattle.master%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ECustomMasterPageUrl%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22%7Bmasterpagecatalog%7D%2Fseattle.master%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EHubSiteUrl%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22%3CA%20href%3D%22https%3A%2F%2Fm365x539190.sharepoint.com%2Fsites%2Fourclients%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fm365x539190.sharepoint.com%2Fsites%2Fourclients%3C%2FA%3E%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ECommentsOnSitePagesDisabled%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22false%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EQuickLaunchEnabled%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22true%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EMembersCanShare%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22true%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ESearchScope%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22DefaultScope%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ESearchBoxInNavBar%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22Inherit%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22tag%22%3E%2F%26gt%3B%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%233366FF%22%3E%3CEM%3E%3CSPAN%20class%3D%22tag%22%3E%3CSITESETTINGS%3E%3CSPAN%20class%3D%22atn%22%3EAllowDesigner%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22true%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EAllowCreateDeclarativeWorkflow%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22true%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EAllowSaveDeclarativeWorkflowAsTemplate%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22true%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EAllowSavePublishDeclarativeWorkflow%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22true%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ESearchBoxInNavBar%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22Inherit%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ESearchCenterUrl%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22%22%3C%2FSPAN%3E%20%2F%26gt%3B%20%3C%2FSITESETTINGS%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%233366FF%22%3E%3CEM%3E%3CSPAN%20class%3D%22tag%22%3E%3CREGIONALSETTINGS%3E%3CSPAN%20class%3D%22atn%22%3EAdjustHijriDays%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%220%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EAlternateCalendarType%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22None%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ECalendarType%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22Gregorian%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ECollation%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%2225%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EFirstDayOfWeek%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22Sunday%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EFirstWeekOfYear%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%220%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ELocaleId%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%221033%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EShowWeeks%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22false%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ETime24%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%22false%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3ETimeZone%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%2213%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EWorkDayEndHour%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%225%3A00PM%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EWorkDays%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%2262%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22atn%22%3EWorkDayStartHour%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22atv%22%3E%228%3A00AM%22%3C%2FSPAN%3E%20%2F%26gt%3B%3C%2FREGIONALSETTINGS%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1173139%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1373246%22%20slang%3D%22en-US%22%3ERe%3A%20pnp%20schema%20template%20issue%20-%20how%20to%20inlcude%20%E2%80%9Cnew%20and%20existing%20guests%E2%80%9D%20option%20in%20the%20schema%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1373246%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F288162%22%20target%3D%22_blank%22%3E%40gadagottiraj%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20a%20look%20to%20the%20Schema%20sample%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2FPnP-Provisioning-Schema%2Fblob%2Fmaster%2FSamples%2FProvisioningSchema-2020-02-FullSample-01.xml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fpnp%2FPnP-Provisioning-Schema%2Fblob%2Fmaster%2FSamples%2FProvisioningSchema-2020-02-FullSample-01.xml%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am not finding the right XML schema to include it in my PNP provisioning template.

How can I include settings called "New and existing guests" for external sharing while provisioning a site using pnp provisioning template?

I am not sure where to add exactly here? I also heard that we can include documents in PNP provisioning template, but I am getting error as an invalid template if I include that.

 

 

<pnp:Provisioning xmlns:pnp="http://schemas.dev.office.com/PnP/2020/02/ProvisioningSchema"> <pnp:Preferences Generator="OfficeDevPnP.Core, Version=3.18.2002.0, Culture=neutral, PublicKeyToken=5e633289e95c321a" />

 

<pnp:Templates ID="CONTAINER-TEMPLATE-1AFCA687C58D4033A2FEC5FDA9F29256"> <pnp:ProvisioningTemplate ID="TEMPLATE-1AFCA687C58D4033A2FEC5FDA9F29256" Version="1" BaseSiteTemplate="GROUP#0" Scope="RootSite">

 

<pnp:WebSettings RequestAccessEmail="" NoCrawl="false" WelcomePage="SitePages/Home.aspx" SiteLogo="{site}/_api/GroupService/GetGroupImage?id='303de100-57ea-4199-b48f-34ddb222df78'&amp;hash=637170283721262427" AlternateCSS="" MasterPageUrl="{masterpagecatalog}/seattle.master" CustomMasterPageUrl="{masterpagecatalog}/seattle.master" HubSiteUrl="https://m365x539190.sharepoint.com/sites/ourclients" CommentsOnSitePagesDisabled="false" QuickLaunchEnabled="true" MembersCanShare="true" SearchScope="DefaultScope" SearchBoxInNavBar="Inherit" />

 

 

 

<pnp:SiteSettings AllowDesigner="true" AllowCreateDeclarativeWorkflow="true" AllowSaveDeclarativeWorkflowAsTemplate="true" AllowSavePublishDeclarativeWorkflow="true" SearchBoxInNavBar="Inherit" SearchCenterUrl="" />

 

 

<pnp:RegionalSettings AdjustHijriDays="0" AlternateCalendarType="None" CalendarType="Gregorian" Collation="25" FirstDayOfWeek="Sunday" FirstWeekOfYear="0" LocaleId="1033" ShowWeeks="false" Time24="false" TimeZone="13" WorkDayEndHour="5:00PM" WorkDays="62" WorkDayStartHour="8:00AM" />

1 Reply