Set SharePoint access requests to owner group

%3CLINGO-SUB%20id%3D%22lingo-sub-199503%22%20slang%3D%22en-US%22%3ESet%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199503%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20can%20I%20set%20the%20%3CEM%3EAccess%20Request%20Settings%3C%2FEM%3E%20to%20the%20%3CSTRONG%3EOwner%20group%3C%2FSTRONG%3E%20on%20an%20O365%20SharePoint%20site%20%3F%3C%2FP%3E%3CP%3EI%20could%20not%20find%20any%20method%20in%20PnP%20PowerShell%26nbsp%3Bor%26nbsp%3BCSOM...%26nbsp%3BSet-PnPRequestAccessEmails%20only%20allows%20to%20set%20emails%2C%20not%20to%20select%20the%20site%20owner%20group.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20option%20is%20available%20through%20the%20UI%20though%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20523px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F35196i353FF2CC4142F620%2Fimage-dimensions%2F523x291%3Fv%3D1.0%22%20width%3D%22523%22%20height%3D%22291%22%20alt%3D%22AccessRequestSettings.png%22%20title%3D%22AccessRequestSettings.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-199503%22%20slang%3D%22en-US%22%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-361337%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361337%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20very%20much%2C%20I%20thought%20I%20missed%20the%20update%20from%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Foffice%2Fblogs%2Fnew-sharepoint-csom-version-released-for-sharepoint-online-november-2018%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Foffice%2Fblogs%2Fnew-sharepoint-csom-version-released-for-sharepoint-online-november-2018%2F%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20great%20to%20have%20this%20update%2C%20thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361331%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361331%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F98490%22%20target%3D%22_blank%22%3E%40Long%20Liang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20should%20be%20some%20new%20updates%20to%20CSOM%20to%20allow%20access%20request%20settings%20to%20be%20modified.%20Thanks!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStephen%20Rice%3C%2FP%3E%0A%3CP%3EOneDrive%20Program%20Manager%20II%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361329%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361329%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F369%22%20target%3D%22_blank%22%3E%40Vesa%20Juvonen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20updates%20for%20exposing%20the%20API%20in%20CSOM%20or%20Rest%20API%3F%20Thank%26nbsp%3B%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-271946%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-271946%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F369%22%20target%3D%22_blank%22%3E%40Vesa%20Juvonen%3C%2FA%3E%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20progress%20with%20this%20topic.%20Or%20at%20least%20clarify%20how%20it%20should%20be%20used%20when%20we%20want%20to%20configure%20web%20owner%20group%3F%3C%2FP%3E%3CP%3EWe%20are%20looking%20for%20this%20right%20now%20as%20the%20requests%20are%20not%20processed.%3C%2FP%3E%3CP%3EHave%20a%20nice%20day%3C%2FP%3E%3CP%3EP.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206290%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206290%22%20slang%3D%22en-US%22%3E%3CP%3ECurrently%2C%20this%20information%20is%20not%20exposed%20with%20the%20REST%2FCSOM%20APIs%2C%20so%20it%20cannot%20be%20controlled%20by%20using%20remote%20options%20(SPO%20or%20PnP%20PowerShell%20or%20code).%20We%20are%20looking%20into%20exposing%20this%20API%20with%20the%20CSOM%20in%20future%2C%20but%20there's%20no%20ETA%20for%20that%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-205977%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-205977%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20-%20this%20isnt%20the%20same%20as%20being%20able%20to%20set%20the%20site%20to%20use%20the%20Owners%20group%20through%20script.%20this%20would%20be%20very%20useful%20to%20us%20as%20I%20would%20now%20like%20to%20set%20all%20of%20our%20existing%20sites%20(which%20are%20currently%20using%20hardcoded%20email%20addresses)%20to%20using%20the%20Owners%20group%20to%20service%20access%20requests.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIm%20kind%20of%20hoping%20the%20PnP%20Powershell%20Cmdlets%20might%20include%20an%20option%20for%20doing%20that%20-%20what%20do%20you%20think%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F369%22%20target%3D%22_blank%22%3E%40Vesa%20Juvonen%3C%2FA%3E%26nbsp%3Bcould%20we%20get%20that%20added%20to%20the%20%22To%20Do%22%20list%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENigel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-201958%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201958%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F76058%22%20target%3D%22_blank%22%3E%40Fouziya%20LAHJIOUJ%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EIs%20the%20default%20group%20listed%20in%20the%20UI%20screenshot%20still%20a%20valid%20group%20on%20the%20site%3F%20In%20cases%20where%20no%20secondary%20address%20has%20been%20set%20and%20the%20default%20group%20is%20not%20available%2C%20I%20believe%20we%20fall%20back%20to%20the%20site%20creator.%20Thanks%20for%20confirming!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStephen%20Rice%3C%2FP%3E%0A%3CP%3EOneDrive%20Program%20Manager%20II%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199707%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199707%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%26nbsp%3B-%20I%20know%20you%20were%20looking%20for%20feedback%20and%20pretty%20involved%20in%20the%20Access%20Request%20piece%2C%20have%20any%20insights%20on%20this%20one%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199518%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199518%22%20slang%3D%22en-US%22%3E%3CP%3ENop.%20On%20my%20tenant%20by%20default%20access%20requests%20are%20defined%20to%20be%20sent%20to%20the%20user%20who%20created%20the%20site.%20Quite%20annoying%20when%20you%20have%20to%20handle%20a%20large%20number%20of%20sites.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-199515%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199515%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EIt's%20set%20to%20Site%20Owner%20Group%20by%20default%20.%20You%20don't%20need%20to%20set%20it.%20If%20you%20need%20to%20send%20the%20request%20to%20a%20different%20email%20address%26nbsp%3B%20you%20can%20still%20do%20it%20using%20the%20same%20powershell.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-528075%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-528075%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F42656%22%20target%3D%22_blank%22%3E%40Nigel%20Witherdin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewe%20have%20suffering%20with%20same%20issue%20%2C%20we%20have%20large%20number%20of%20Sites%20which%20was%20created%20before%20which%20site%20Accesses%20request%20is%20going%20to%26nbsp%3B%20Hard%20code%26nbsp%3B%20email%20%2C%20we%20want%20this%20site%20Access%20request%20to%20site%20owners%20%2Cany%26nbsp%3B%20solution%20appreciated.%3C%2FP%3E%3CP%3EYagie72%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-540513%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-540513%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F333110%22%20target%3D%22_blank%22%3E%40yagie72%3C%2FA%3E%3CBR%20%2F%3EThis%20is%20available%2C%20please%20check%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Foffice%2Fblogs%2Fnew-sharepoint-csom-version-released-for-sharepoint-online-november-2018%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fen-us%2Foffice%2Fblogs%2Fnew-sharepoint-csom-version-released-for-sharepoint-online-november-2018%2F%3C%2FA%3E%20Thank%20you%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-793360%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-793360%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F76058%22%20target%3D%22_blank%22%3E%40Fouziya%20LAHJIOUJ%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3ETo%20enable%20this%20email%20setting%20and%20send%20the%20notification%20to%20the%20owner%2C%20use%20the%20below%20PnP%20PowerShell%20snippets%20.%3C%2FDIV%3E%3CDIV%3E%3CDIV%20class%3D%22dp-highlighter%22%3E%3CDIV%20class%3D%22bar%22%3E%26nbsp%3B%3C%2FDIV%3E%3COL%3E%3CLI%3E%3CSPAN%3E%24cred%26nbsp%3B%3D%26nbsp%3BGet-Credential%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3E%3CSPAN%20class%3D%22keyword%22%3EConnect%3C%2FSPAN%3E-PnPOnline%26nbsp%3B-Url%26nbsp%3Bhttps%3A%2F%2F.sharepoint.com%26nbsp%3B-Credential%26nbsp%3B%24cred%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3E%3CSPAN%20class%3D%22keyword%22%3ESet%3C%2FSPAN%3E-PnPRequestAccessEmails%26nbsp%3B-Emails%20ktskumar%40%3CTENANT%3E.onmicrosoft.com%26nbsp%3B%26nbsp%3B%3C%2FTENANT%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FDIV%3ETo%20add%20multiple%20emails%20to%20the%20settings%2C%20use%20the%20below%20cmdlet.%3C%2FDIV%3E%3CDIV%3E%3CDIV%20class%3D%22dp-highlighter%22%3E%3CDIV%20class%3D%22bar%22%3E%26nbsp%3B%3C%2FDIV%3E%3COL%3E%3CLI%3E%3CSPAN%3E%3CSPAN%20class%3D%22keyword%22%3ESet%3C%2FSPAN%3E-PnPRequestAccessEmails%26nbsp%3B-Emails%26nbsp%3B%40(%26nbsp%3Bktskumar%40%40%3CTENANT%3E.onmicrosoft.com%3B%26nbsp%3Buser1%40%3CTENANT%3E.onmicrosoft.com%26nbsp%3B)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FTENANT%3E%3C%2FTENANT%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FDIV%3EThe%20below%20PnP%20Powershell%20snippet%20is%20used%20to%20get%20the%20emails%20associated%20to%20allow%20access%20requests%20settings.%3C%2FDIV%3E%3CDIV%3E%3CDIV%20class%3D%22dp-highlighter%22%3E%3CDIV%20class%3D%22bar%22%3E%26nbsp%3B%3C%2FDIV%3E%3COL%3E%3CLI%3E%3CSPAN%3E%24cred%26nbsp%3B%3D%26nbsp%3BGet-Credential%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3E%3CSPAN%20class%3D%22keyword%22%3EConnect%3C%2FSPAN%3E-PnPOnline%26nbsp%3B-Url%26nbsp%3Bhttps%3A%2F%2F.sharepoint.com%26nbsp%3B-Credential%26nbsp%3B%24cred%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EGet-PnPRequestAccessEmails%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ESource%3A%3CBR%20%2F%3E%3CA%20title%3D%22Allow%20Access%20Requests%20Email%20Settings%20In%20SharePoint%20Site%20Using%20PnP%20PowerShell%22%20href%3D%22https%3A%2F%2Fwww.c-sharpcorner.com%2Fblogs%2Fallow-access-requests-email-settings-in-sharepoint-site-using-pnp-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.c-sharpcorner.com%2Fblogs%2Fallow-access-requests-email-settings-in-sharepoint-site-using-pnp-powershell%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-890474%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-890474%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F369%22%20target%3D%22_blank%22%3E%40Vesa%20Juvonen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20also%20need%20to%20change%20the%20%22Access%20Request%22%20method%20to%20set%20to%20Owner%20Group%20as%20it%20is%20possible%20through%20interface.%3C%2FP%3E%3CP%3EWe%20are%20writing%20a%20CSOM%20method%20to%20create%20site%20from%20template%20and%20the%20%22access%20request%22%20option%20need%20to%20be%20set%20in%20the%20code%20using%20CSOM.%3C%2FP%3E%3CP%3EPlease%2C%20tell%20me%20if%20any%20update%20of%20CSOM%20library%20is%20forecast%20or%20give%20any%20solution%20to%20update%20this%20option%20by%20code%20using%20any%20other%20library...%3C%2FP%3E%3CP%3ERegards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-918614%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-918614%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F419242%22%20target%3D%22_blank%22%3E%40EricD35%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20this%20will%20help%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F239489%2Fsharepoint-pnp-powershell-how-to-provision-sub-webs-with-unique-permissions-an%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F239489%2Fsharepoint-pnp-powershell-how-to-provision-sub-webs-with-unique-permissions-an%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22com%22%3E%23Connect%20to%20Site%20Collection%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%24me%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EGet%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ECredential%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22typ%22%3EConnect%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPOnline%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EUrl%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20%20https%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20class%3D%22com%22%3E%2F%2Fmytenet.sharepoint.com%2Fsites%2FMySiteCollection%20-Credentials%20%24me%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22com%22%3E%23Create%20sub%20web%20with%20unique%20permissions%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22typ%22%3ENew%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPWeb%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ETitle%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22ProjectB%20Web%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EUrl%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EProjectB%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EDescription%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22Information%20about%20ProjectB%22%3C%2FSPAN%3E%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EBreakInheritance%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EInheritNavigation%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ETemplate%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22STS%230%22%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22typ%22%3EConnect%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPOnline%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EUrl%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22https%3A%2F%2Fmytenet.sharepoint.com%2Fsites%2FMySiteCollection%2FProjectB%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ECredentials%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20%24me%0A%24owner%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EGet%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPContext%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E).%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ECredentials%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EUserName%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22com%22%3E%23Create%20default%20groups%20for%20the%20new%20web%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22com%22%3E%23here%2C%20by%20default%20owner%20will%20be%20the%20person%20provisioning%20the%20groups%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%24ownerGroup%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3ENew%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ETitle%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22ProjectB%20Web%20Owners%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EOwner%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20%24owner%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ESet%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EIdentity%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20%24ownerGroup%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ESetAssociatedGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EOwners%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%24memberGroup%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3ENew%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ETitle%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22ProjectB%20Web%20Members%22%3C%2FSPAN%3E%20%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EOwner%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20%24owner%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ESet%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EIdentity%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20%24memberGroup%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ESetAssociatedGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EMembers%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%24visitorGroup%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3D%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3ENew%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ETitle%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22str%22%3E%22ProjectB%20Web%20Visitors%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EOwner%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20%24owner%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ESet%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EIdentity%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20%24visitorGroup%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3ESetAssociatedGroup%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22typ%22%3EVisitors%3C%2FSPAN%3E%0A%0A%3CSPAN%20class%3D%22com%22%3E%23Apply%20template%20with%20groups.%20%20Templates%20applies%20OK%2C%20but%20groups%20are%20not%20defined%20%20%3C%2FSPAN%3E%0A%3CSPAN%20class%3D%22typ%22%3EApply%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPnPProvisioningTemplate%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EPath%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20C%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E%3A%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%5CProjectSiteTemplate%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E.%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3Exml%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E-%3C%2FSPAN%3E%3CSPAN%20class%3D%22typ%22%3EWeb%3C%2FSPAN%3E%3CSPAN%20class%3D%22pln%22%3E%20projectB%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1171277%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1171277%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F76058%22%20target%3D%22_blank%22%3E%40Fouziya%20LAHJIOUJ%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EDid%20you%20find%20a%20solution%20for%20your%20problem%20%3F%3C%2FP%3E%3CP%3EI%20have%20exactly%20the%20same%20problem%20to%20solve.%20I%20need%20to%20define%20RequestAcces%20on%20the%20Owner%20Group%2C%20not%20on%20a%20specific%20email...%3C%2FP%3E%3CP%3EEric.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1172903%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20SharePoint%20access%20requests%20to%20owner%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1172903%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%26nbsp%3Bany%20update%20on%26nbsp%3B%3CSPAN%3Epublic%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eproperty%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3BMicrosoft.SharePoint.Client.Web.UseAccessRequestDefault%20being%20able%20to%20email%20site%20Owners%20group%20(and%20not%20set%20an%20individual%20email)%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMany%20thanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

How can I set the Access Request Settings to the Owner group on an O365 SharePoint site ?

I could not find any method in PnP PowerShell or CSOM... Set-PnPRequestAccessEmails only allows to set emails, not to select the site owner group.

 

The option is available through the UI though :

 

AccessRequestSettings.png

17 Replies

It's set to Site Owner Group by default . You don't need to set it. If you need to send the request to a different email address  you can still do it using the same powershell.

Nop. On my tenant by default access requests are defined to be sent to the user who created the site. Quite annoying when you have to handle a large number of sites. 

@Stephen Rice - I know you were looking for feedback and pretty involved in the Access Request piece, have any insights on this one? 

@Fouziya LAHJIOUJ,


Is the default group listed in the UI screenshot still a valid group on the site? In cases where no secondary address has been set and the default group is not available, I believe we fall back to the site creator. Thanks for confirming!

 

Stephen Rice

OneDrive Program Manager II

@Stephen Rice

 

Hi - this isnt the same as being able to set the site to use the Owners group through script. this would be very useful to us as I would now like to set all of our existing sites (which are currently using hardcoded email addresses) to using the Owners group to service access requests.

 

Im kind of hoping the PnP Powershell Cmdlets might include an option for doing that - what do you think @Vesa Juvonen could we get that added to the "To Do" list?

 

Thanks

 

Nigel

Currently, this information is not exposed with the REST/CSOM APIs, so it cannot be controlled by using remote options (SPO or PnP PowerShell or code). We are looking into exposing this API with the CSOM in future, but there's no ETA for that work.

Hello @Vesa Juvonen

 

Is there any progress with this topic. Or at least clarify how it should be used when we want to configure web owner group?

We are looking for this right now as the requests are not processed.

Have a nice day

P. 

@Vesa Juvonen 

Any updates for exposing the API in CSOM or Rest API? Thank  you.

 

Hi @Long Liang ,

 

There should be some new updates to CSOM to allow access request settings to be modified. Thanks!

 

Stephen Rice

OneDrive Program Manager II

Thank you very much, I thought I missed the update from https://developer.microsoft.com/en-us/office/blogs/new-sharepoint-csom-version-released-for-sharepoi....

 

It's great to have this update, thank you.

@Nigel Witherdin 

we have suffering with same issue , we have large number of Sites which was created before which site Accesses request is going to  Hard code  email , we want this site Access request to site owners ,any  solution appreciated.

Yagie72

 

@Fouziya LAHJIOUJ 

 

To enable this email setting and send the notification to the owner, use the below PnP PowerShell snippets .
 
  1. $cred = Get-Credential    
  2. Connect-PnPOnline -Url https://.sharepoint.com -Credential $cred    
  3. Set-PnPRequestAccessEmails -Emails ktskumar@<tenant>.onmicrosoft.com  
To add multiple emails to the settings, use the below cmdlet.
 
  1. Set-PnPRequestAccessEmails -Emails @( ktskumar@<tenant>.onmicrosoft.com; user1@<tenant>.onmicrosoft.com )    
The below PnP Powershell snippet is used to get the emails associated to allow access requests settings.
 
  1. $cred = Get-Credential      
  2. Connect-PnPOnline -Url https://.sharepoint.com -Credential $cred      
  3. Get-PnPRequestAccessEmails 

 

Source:
https://www.c-sharpcorner.com/blogs/allow-access-requests-email-settings-in-sharepoint-site-using-pn... 

@Vesa Juvonen 

We also need to change the "Access Request" method to set to Owner Group as it is possible through interface.

We are writing a CSOM method to create site from template and the "access request" option need to be set in the code using CSOM.

Please, tell me if any update of CSOM library is forecast or give any solution to update this option by code using any other library...

Regards.

@EricD35 

 

Hi, 

 

I think this will help:

 

https://sharepoint.stackexchange.com/questions/239489/sharepoint-pnp-powershell-how-to-provision-sub...

 

#Connect to Site Collection$me = Get-Credential
Connect-PnPOnline -Url  https://mytenet.sharepoint.com/sites/MySiteCollection -Credentials $me

#Create sub web with unique permissions
New-PnPWeb -Title "ProjectB Web" -Url ProjectB -Description "Information about ProjectB"  -BreakInheritance -InheritNavigation -Template "STS#0"

Connect-PnPOnline -Url "https://mytenet.sharepoint.com/sites/MySiteCollection/ProjectB" -Credentials $me
$owner = (Get-PnPContext).Credentials.UserName

#Create default groups for the new web
#here, by default owner will be the person provisioning the groups$ownerGroup = New-PnPGroup -Title "ProjectB Web Owners" -Owner $ownerSet-PnPGroup -Identity $ownerGroup -SetAssociatedGroup Owners$memberGroup = New-PnPGroup -Title "ProjectB Web Members"  -Owner $ownerSet-PnPGroup -Identity $memberGroup -SetAssociatedGroup Members$visitorGroup = New-PnPGroup -Title "ProjectB Web Visitors" -Owner $ownerSet-PnPGroup -Identity $visitorGroup -SetAssociatedGroup Visitors

#Apply template with groups.  Templates applies OK, but groups are not defined  
Apply-PnPProvisioningTemplate -Path C:\ProjectSiteTemplate.xml -Web projectB

 

@Fouziya LAHJIOUJ 

Hi,

Did you find a solution for your problem ?

I have exactly the same problem to solve. I need to define RequestAcces on the Owner Group, not on a specific email...

Eric.

@Stephen Rice any update on public property Microsoft.SharePoint.Client.Web.UseAccessRequestDefault being able to email site Owners group (and not set an individual email)?

 

Many thanks.