Skip to content

Commit 2f207da

Browse files
authored
Merge pull request #698 from hhhults/patch-1
Add WhoCanShare AllowLists to SetSPOTenant.md
2 parents 36d3c6b + 64496a6 commit 2f207da

File tree

1 file changed

+62
-8
lines changed

1 file changed

+62
-8
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ Set-SPOTenant
179179
[-OpticalCharacterRecognitionSelectedSitesList [String[]]]
180180
[-OpticalCharacterRecognitionSelectedSitesListOperation <SelectedSitesListOperations>]
181181
[-AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled <Boolean>]
182+
[-WhoCanShareAnonymousAllowList [Guid[]]]
183+
[-WhoCanShareAuthenticatedGuestAllowList [Guid[]]]
182184
[<CommonParameters>]
183185
```
184186

@@ -299,23 +301,23 @@ This example sets manual version history limits on all new document libraries at
299301
### EXAMPLE 14
300302

301303
```powershell
302-
PS > Set-SPOTenant -SharingDomainRestrictionMode "AllowList" -SharingAllowedDomainList "contoso.com fabrikam.com"
304+
Set-SPOTenant -SharingDomainRestrictionMode "AllowList" -SharingAllowedDomainList "contoso.com fabrikam.com"
303305
```
304306

305307
This example enables users to share with external collaborators from those domains only.
306308

307309
### EXAMPLE 15
308310

309311
```powershell
310-
PS > Set-SPOTenant -SharingDomainRestrictionMode "BlockList" -SharingBlockedDomainList "contoso.com"
312+
Set-SPOTenant -SharingDomainRestrictionMode "BlockList" -SharingBlockedDomainList "contoso.com"
311313
```
312314

313315
This example enables users to share with all external collaborators except for those on the BlockedDomainList.
314316

315317
### EXAMPLE 16
316318

317319
```powershell
318-
PS > Set-SPOTenant -EnableVersionExpirationSetting $true
320+
Set-SPOTenant -EnableVersionExpirationSetting $true
319321
```
320322

321323
This example opts your tenant into public preview of Improved Version History controls feature. This feature is being tracked on the Microsoft 365 Public Roadmap under ID [145802](https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&searchterms=145802).
@@ -327,24 +329,40 @@ By opting in, you are accepting the terms of service for version history limits.
327329
### EXAMPLE 17
328330

329331
```powershell
330-
PS > Set-SPOTenant -PrebuiltModelScope SelectedSites -PrebuiltModelSelectedSitesList "https://contoso.sharepoint.com/sites/site1","https://contoso.sharepoint.com/sites/site2" -PrebuiltModelSelectedSitesListOperation Append
332+
Set-SPOTenant -PrebuiltModelScope SelectedSites -PrebuiltModelSelectedSitesList "https://contoso.sharepoint.com/sites/site1","https://contoso.sharepoint.com/sites/site2" -PrebuiltModelSelectedSitesListOperation Append
331333
```
332334

333335
This example sets the scope of the prebuilt model and [prebuilt document processing](/microsoft-365/syntex/prebuilt-overview) premium feature to `SelectedSites`, which limits the feature to only sites included in the selected sites list. This example also appends two sites to the feature's selected sites list.
334336

335337
Use of these parameters require the tenant to either have the required license or pay-as-you-go billing set up. For more information, visit [Licensing for Microsoft Syntex](/microsoft-365/syntex/syntex-licensing).
336338

337-
### Example 18
339+
### EXAMPLE 18
338340

339341
```powershell
340-
PS > Set-SPOTenant -DefaultContentCenterSite "https://contoso.sharepoint.com/sites/contentcenter"
342+
Set-SPOTenant -DefaultContentCenterSite "https://contoso.sharepoint.com/sites/contentcenter"
341343
```
342344

343345
This example sets the tenant's default content center. It can only be used if the tenant does not already have a designated default content center. To learn more about content centers, visit [Create a content center in Microsoft Syntex](/microsoft-365/syntex/create-a-content-center).
344346

345-
346347
Use of this parameter requires the tenant to either have the required license or pay-as-you-go billing set up. For more information, visit [Licensing for Microsoft Syntex](/microsoft-365/syntex/syntex-licensing).
347348

349+
### EXAMPLE 19
350+
351+
```powershell
352+
$list = (Get-SPOTenant | Select-Object WhoCanShareAnonymousAllowList).WhoCanShareAnonymousAllowList
353+
Set-SPOTenant –WhoCanShareAnonymousAllowList ($list + <new GUID>)
354+
```
355+
356+
This example appends a security group to the WhoCanShareAnonymousAllowList. Similar code works for the WhoCanShareAuthenticatedGuestAllowList.
357+
358+
### EXAMPLE 20
359+
360+
```powershell
361+
Set-SPOTenant –WhoCanShareAnonymousAllowList @()
362+
```
363+
364+
This example empties the WhoCanShareAnonymousAllowList. Similar code works for the WhoCanShareAuthenticatedGuestAllowList.
365+
348366
## PARAMETERS
349367

350368
### -ApplyAppEnforcedRestrictionsToAdHocRecipients
@@ -3526,10 +3544,46 @@ Accept pipeline input: False
35263544
Accept wildcard characters: False
35273545
```
35283546

3547+
### -WhoCanShareAnonymousAllowList
3548+
3549+
Sets the list of security groups who are allowed to share with anonymous (non-authenticated) users as well as authenticated guest users. Each security group is denoted by its GUID object ID in the Entra directory.
3550+
3551+
To set this list to be a specific security group, you need to enter its GUID as the argument. You can enter multiple GUIDs by using commas to separate them. To view the current list, use [Get-SPOTenant](Get-SPOTenant.md).
3552+
3553+
```yaml
3554+
Type: Guid[]
3555+
Parameter Sets: (All)
3556+
Aliases:
3557+
Applicable: SharePoint Online
3558+
Required: False
3559+
Position: Named
3560+
Default value: None
3561+
Accept pipeline input: False
3562+
Accept wildcard characters: False
3563+
```
3564+
3565+
### -WhoCanShareAuthenticatedGuestAllowList
3566+
3567+
Sets the list of security groups who are only allowed to share with authenticated guest users. Each security group is denoted by its GUID object ID.
3568+
3569+
To set this list to be a specific security group, you need to enter its GUID as the argument. You can enter multiple GUIDs by using commas to separate them. To view the current list, use [Get-SPOTenant](Get-SPOTenant.md).
3570+
3571+
```yaml
3572+
Type: Guid[]
3573+
Parameter Sets: (All)
3574+
Aliases:
3575+
Applicable: SharePoint Online
3576+
Required: False
3577+
Position: Named
3578+
Default value: None
3579+
Accept pipeline input: False
3580+
Accept wildcard characters: False
3581+
```
3582+
35293583
## RELATED LINKS
35303584

35313585
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
35323586

3533-
[Upgrade-SPOSite](Upgrade-SPOSite.md)
3587+
[Get-SPOSite](Get-SPOSite.md)
35343588

35353589
[Set-SPOSite](Set-SPOSite.md)

0 commit comments

Comments
 (0)