Skip to content

Commit fb718d4

Browse files
authored
Add WhoCanShare Settings to Set-SPOContainerTypeConfiguration
1 parent e167907 commit fb718d4

File tree

1 file changed

+108
-1
lines changed

1 file changed

+108
-1
lines changed

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

Lines changed: 108 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ 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
22+
[-ContainerTypeId <ContainerTypeId>]
23+
[-DiscoverabilityDisabled <Boolean>]
24+
[-SharingRestricted <Boolean>]
25+
[-WhoCanShareAnonymousAllowList <Guid[]>]
26+
[-WhoCanShareAuthenticatedGuestAllowList <Guid[]>]
27+
[-OverrideTenantWhoCanShareAnonymousAllowList <Boolean>]
28+
[-OverrideTenantWhoCanShareAuthenticatedGuestAllowList <Boolean>]
2229
```
2330

2431
## DESCRIPTION
@@ -45,6 +52,30 @@ Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb
4552

4653
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.
4754

55+
### Example 3
56+
57+
```powershell
58+
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4 -OverrideTenantWhoCanShareAnonymousAllowList $TRUE -WhoCanShareAnonymousAllowList <guids>
59+
```
60+
61+
Example 3 overrides the tenant-level WhoCanShareAnonymousAllowList.
62+
63+
### Example 4
64+
65+
```powershell
66+
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4 -OverrideTenantWhoCanShareAnonymousAllowList $TRUE –WhoCanShareAnonymousAllowList $NULL -OverrideTenantWhoCanShareAuthenticatedGuestAllowList $TRUE –WhoCanShareAuthenticatedGuestAllowList $NULL
67+
```
68+
69+
Example 4 overrides the tenant-level WhoCanShare settings with null lists, which bypass the check. This has the effect of no longer restricting external sharing privileges to members of specific security groups.
70+
71+
### Example 5
72+
73+
```powershell
74+
Set-SPOContainerTypeConfiguration -ContainerTypeId 4f0af585-8dcc-0000-223d-661eb2c604e4 -OverrideTenantWhoCanShareAuthenticatedGuestAllowList $TRUE –WhoCanShareAuthenticatedGuestAllowList $NULL
75+
```
76+
77+
Example 5 overrides the tenant-level WhoCanShareAuthenticatedGuestAllowList with a null list, 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.
78+
4879
## PARAMETERS
4980

5081
### -DiscoverabilityDisabled
@@ -80,6 +111,82 @@ Accept pipeline input: False
80111
Accept wildcard characters: False
81112
```
82113
114+
### -WhoCanShareAnonymousAllowList
115+
116+
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. Must be set in conjunction with OverrideTenantWhoCanShareAnonymousAllowList.
117+
118+
> [!NOTE]
119+
> This allow list only accepts security groups, and not Microsoft 365 Groups.
120+
121+
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.
122+
123+
```yaml
124+
Type: Guid[]
125+
Parameter Sets: (All)
126+
Aliases:
127+
Applicable: SharePoint Online
128+
Required: False
129+
Position: Named
130+
Default value: None
131+
Accept pipeline input: False
132+
Accept wildcard characters: False
133+
```
134+
135+
### WhoCanShareAuthenticatedGuestAllowList
136+
137+
Sets a container type-specific list of security groups who are allowed to share with authenticated guest users at the container level. Must be set in conjunction with OverrideTenantWhoCanShareAuthenticatedGuestAllowList.
138+
139+
> [!NOTE]
140+
> This allow list only accepts security groups, and not Microsoft 365 Groups.
141+
142+
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.
143+
144+
```yaml
145+
Type: Guid[]
146+
Parameter Sets: (All)
147+
Aliases:
148+
Applicable: SharePoint Online
149+
Required: False
150+
Position: Named
151+
Default value: None
152+
Accept pipeline input: False
153+
Accept wildcard characters: False
154+
```
155+
156+
### OverrideTenantWhoCanShareAnonymousAllowList
157+
158+
This setting determines if the container type WhoCanShareAnonymousAllowList overrides the tenant-level WhoCanShareAnonymousAllowList. The default value for this parameter is false.
159+
160+
PARAMVALUE: True | False
161+
162+
```yaml
163+
Type: Boolean
164+
Parameter Sets: (All)
165+
Applicable: SharePoint Online
166+
Required: False
167+
Position: Named
168+
Default value: None
169+
Accept pipeline input: False
170+
Accept wildcard characters: False
171+
```
172+
173+
### OverrideTenantWhoCanShareAuthenticatedGuestAllowList
174+
175+
This setting determines if the container type WhoCanShareAuthenticatedGuestAllowList overrides the tenant-level WhoCanShareAuthenticatedGuestAllowList. The default value for this parameter is false.
176+
177+
PARAMVALUE: True | False
178+
179+
```yaml
180+
Type: Boolean
181+
Parameter Sets: (All)
182+
Applicable: SharePoint Online
183+
Required: False
184+
Position: Named
185+
Default value: None
186+
Accept pipeline input: False
187+
Accept wildcard characters: False
188+
```
189+
83190
## RELATED LINKS
84191
85192
[Get-SPOContainerTypeConfiguration](Get-SPOContainerTypeConfiguration.md)

0 commit comments

Comments
 (0)