Skip to content

Commit 53d981a

Browse files
authored
Merge pull request #821 from hhhults/main
Add WhoCanShare Settings to Set-SPOContainerTypeConfiguration
2 parents 85f0266 + 347447e commit 53d981a

File tree

1 file changed

+104
-1
lines changed

1 file changed

+104
-1
lines changed

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

Lines changed: 104 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ Sets or updates the configuration settings of a container type in SharePoint Emb
1818

1919
## SYNTAX
2020
```powershell
21-
Set-SPOContainerTypeConfiguration [-ContainerTypeId <ContainerTypeId>] [-DiscoverabilityDisabled <Boolean>] [-SharingRestricted <Boolean>]
21+
Set-SPOContainerTypeConfiguration -ContainerTypeId <Guid> [-DiscoverabilityDisabled <Boolean>]
22+
[-SharingRestricted <Boolean>] [-ApplicationRedirectUrl <String>] [-WhoCanShareAnonymousAllowList <Guid[]>]
23+
[-WhoCanShareAuthenticatedGuestAllowList <Guid[]>] [-OverrideTenantWhoCanShareAnonymousAllowList <Boolean>]
24+
[-OverrideTenantWhoCanShareAuthenticatedGuestAllowList <Boolean>]
2225
```
2326

2427
## DESCRIPTION
@@ -45,6 +48,30 @@ Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb
4548

4649
Example 2 turns on an open sharing model for this container type. Any container members and guest users with edit permissions can share files created within the container type.
4750

51+
### Example 3
52+
53+
```powershell
54+
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4 -OverrideTenantWhoCanShareAnonymousAllowList $true -WhoCanShareAnonymousAllowList <guids>
55+
```
56+
57+
Example 3 overrides the tenant-level `WhoCanShareAnonymousAllowList`.
58+
59+
### Example 4
60+
61+
```powershell
62+
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4 -OverrideTenantWhoCanShareAnonymousAllowList $true –WhoCanShareAnonymousAllowList $null -OverrideTenantWhoCanShareAuthenticatedGuestAllowList $true –WhoCanShareAuthenticatedGuestAllowList $null
63+
```
64+
65+
Example 4 overrides the tenant-level `WhoCanShareAnonymousAllowList` and `WhoCanShareAuthenticatedGuestAllowList` with null values, which bypass the check. This has the effect of no longer restricting external sharing privileges to members of specific security groups.
66+
67+
### Example 5
68+
69+
```powershell
70+
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4 -OverrideTenantWhoCanShareAuthenticatedGuestAllowList $true –WhoCanShareAuthenticatedGuestAllowList $null
71+
```
72+
73+
Example 5 overrides the tenant-level `WhoCanShareAuthenticatedGuestAllowList` with a null value, while leaving the `WhoCanShareAnonymousAllowList` untouched. This has the effect of no longer restricting the privilege of sharing to authenticated guests to members of specific security groups.
74+
4875
## PARAMETERS
4976

5077
### -DiscoverabilityDisabled
@@ -80,6 +107,82 @@ Accept pipeline input: False
80107
Accept wildcard characters: False
81108
```
82109
110+
### -WhoCanShareAnonymousAllowList
111+
112+
Sets a container type-specific list of security groups who are allowed to share with anonymous (non-authenticated) users as well as authenticated guest users. This must be set in conjunction with `OverrideTenantWhoCanShareAnonymousAllowList`.
113+
114+
> [!NOTE]
115+
> This allow list only accepts security groups, and not Microsoft 365 Groups.
116+
117+
Each security group is denoted by its GUID object ID. To set this list to be a specific security group, you need to enter its GUID as the parameter. You can enter multiple GUIDs by using a comma to separate them. To skip the check and allow all security groups to share to anyone, set this allow list and the `WhoCanShareAuthenticatedGuestAllowList` to null arrays.
118+
119+
```yaml
120+
Type: Guid[]
121+
Parameter Sets: (All)
122+
Aliases:
123+
Applicable: SharePoint Online
124+
Required: False
125+
Position: Named
126+
Default value: None
127+
Accept pipeline input: False
128+
Accept wildcard characters: False
129+
```
130+
131+
### WhoCanShareAuthenticatedGuestAllowList
132+
133+
Sets a container type-specific list of security groups who are allowed to share with authenticated guest users at the container level. This must be set in conjunction with `OverrideTenantWhoCanShareAuthenticatedGuestAllowList`.
134+
135+
> [!NOTE]
136+
> This allow list only accepts security groups, and not Microsoft 365 Groups.
137+
138+
Each security group is denoted by its GUID object ID. To set this list to be a specific security group, you need to enter its GUID as the parameter. You can enter multiple GUIDs by using a comma to separate them. To skip the check and allow all security groups to share to authenticated guests, set this allow list to a null array.
139+
140+
```yaml
141+
Type: Guid[]
142+
Parameter Sets: (All)
143+
Aliases:
144+
Applicable: SharePoint Online
145+
Required: False
146+
Position: Named
147+
Default value: None
148+
Accept pipeline input: False
149+
Accept wildcard characters: False
150+
```
151+
152+
### OverrideTenantWhoCanShareAnonymousAllowList
153+
154+
This setting determines if the container type `WhoCanShareAnonymousAllowList` overrides the tenant-level `WhoCanShareAnonymousAllowList`. The default value for this parameter is false.
155+
156+
PARAMVALUE: True | False
157+
158+
```yaml
159+
Type: Boolean
160+
Parameter Sets: (All)
161+
Applicable: SharePoint Online
162+
Required: False
163+
Position: Named
164+
Default value: None
165+
Accept pipeline input: False
166+
Accept wildcard characters: False
167+
```
168+
169+
### OverrideTenantWhoCanShareAuthenticatedGuestAllowList
170+
171+
This setting determines if the container type `WhoCanShareAuthenticatedGuestAllowList` overrides the tenant-level `WhoCanShareAuthenticatedGuestAllowList`. The default value for this parameter is false.
172+
173+
PARAMVALUE: True | False
174+
175+
```yaml
176+
Type: Boolean
177+
Parameter Sets: (All)
178+
Applicable: SharePoint Online
179+
Required: False
180+
Position: Named
181+
Default value: None
182+
Accept pipeline input: False
183+
Accept wildcard characters: False
184+
```
185+
83186
## RELATED LINKS
84187

85188
[Get-SPOContainerTypeConfiguration](Get-SPOContainerTypeConfiguration.md)

0 commit comments

Comments
 (0)