Skip to content

Commit e2a7a23

Browse files
authored
add AnonymousLinkExpirationInDays to Set-SPOContainerTypeConfiguration
1 parent c8d6514 commit e2a7a23

File tree

1 file changed

+46
-101
lines changed

1 file changed

+46
-101
lines changed

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

Lines changed: 46 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Set-SPOContainerTypeConfiguration -ContainerTypeId <Guid> [-DiscoverabilityDisab
2222
[-SharingRestricted <Boolean>] [-ApplicationRedirectUrl <String>] [-WhoCanShareAnonymousAllowList <Guid[]>]
2323
[-WhoCanShareAuthenticatedGuestAllowList <Guid[]>] [-OverrideTenantWhoCanShareAnonymousAllowList <Boolean>]
2424
[-OverrideTenantWhoCanShareAuthenticatedGuestAllowList <Boolean>]
25-
[[-CopilotEmbeddedChatHosts] <System.Collections.Generic.List`1[System.String]>] [-WhatIf] [-Confirm]
25+
[[-CopilotEmbeddedChatHosts] <System.Collections.Generic.List`1[System.String]>]
26+
[-AnonymousLinkExpirationInDays <Int32>] [-WhatIf] [-Confirm]
2627
[<CommonParameters>]
2728
```
2829

@@ -83,38 +84,25 @@ This example sets the host URLs for the container type with Id 4f0af585.
8384

8485
## PARAMETERS
8586

86-
### -DiscoverabilityDisabled
87-
88-
As a SharePoint Administrator or Global Administrator in Microsoft 365, you can control how your content appears in the Microsoft 365 experience. The default value for this parameter is True, which hides the SharePoint Embedded application content throughout the Microsoft 365 environment, including on office.com, onedrive.com, in recommended sections, or through other Microsoft intelligent file discovery features.
89-
If you opt into the Microsoft 365 experience, your files will be integrated into Microsoft 365 environment, participating in intelligent file discovery.
90-
91-
PARAMVALUE: $true | $false
92-
93-
```yaml
94-
Type: Boolean
95-
Applicable: SharePoint Embedded
96-
Position: Named
97-
Required: False
98-
Default value: True
99-
Accept pipeline input: False
100-
Accept wildcard characters: False
101-
```
102-
103-
### -SharingRestricted
104-
105-
SharePoint Embedded offers a role-based sharing model that allows developers to configure file-sharing permissions based on container permission roles, offering a choice between a restrictive and an open sharing model. The open sharing model allows any container members and guest users with edit permissions to share files. The restrictive sharing model allows only container members who are either Owners or Managers to share files.
87+
### -AnonymousLinkExpirationInDays
88+
Specifies all anonymous links created after the value is set will expire after the set number of days.
10689

107-
PARAMVALUE: $true | $false
90+
The value can be from 1 to 730 days.
91+
92+
To defer to the tenant level setting, set the value to -1.
10893

10994
```yaml
110-
Type: Boolean
111-
Applicable: SharePoint Embedded
112-
Position: Named
95+
Type: Int32
96+
Parameter Sets: (All)
97+
Aliases:
98+
11399
Required: False
114-
Default value: True
100+
Position: Named
101+
Default value: None
115102
Accept pipeline input: False
116103
Accept wildcard characters: False
117104
```
105+
118106
### -ApplicationRedirectUrl
119107
120108
This parameter specifies the url of that the application should be redirected to.
@@ -146,6 +134,7 @@ Default value: None
146134
Accept pipeline input: False
147135
Accept wildcard characters: False
148136
```
137+
149138
### -CopilotEmbeddedChatHosts
150139
This parameter is used to add host URLs allowed to use the SharePoint Embedded application's declarative agent experience.
151140
@@ -161,6 +150,23 @@ Accept pipeline input: False
161150
Accept wildcard characters: False
162151
```
163152
153+
### -DiscoverabilityDisabled
154+
155+
As a SharePoint Administrator or Global Administrator in Microsoft 365, you can control how your content appears in the Microsoft 365 experience. The default value for this parameter is True, which hides the SharePoint Embedded application content throughout the Microsoft 365 environment, including on office.com, onedrive.com, in recommended sections, or through other Microsoft intelligent file discovery features.
156+
If you opt into the Microsoft 365 experience, your files will be integrated into Microsoft 365 environment, participating in intelligent file discovery.
157+
158+
PARAMVALUE: $true | $false
159+
160+
```yaml
161+
Type: Boolean
162+
Applicable: SharePoint Embedded
163+
Position: Named
164+
Required: False
165+
Default value: True
166+
Accept pipeline input: False
167+
Accept wildcard characters: False
168+
```
169+
164170
### -OverrideTenantWhoCanShareAnonymousAllowList
165171
166172
This setting determines if the container type `WhoCanShareAnonymousAllowList` overrides the tenant-level `WhoCanShareAnonymousAllowList`. The default value for this parameter is false.
@@ -197,36 +203,30 @@ Accept pipeline input: False
197203
Accept wildcard characters: False
198204
```
199205

200-
### -WhoCanShareAnonymousAllowList
201-
202-
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`.
203-
204-
> [!NOTE]
205-
> This allow list only accepts security groups, and not Microsoft 365 Groups.
206+
### -SharingRestricted
206207

207-
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.
208+
SharePoint Embedded offers a role-based sharing model that allows developers to configure file-sharing permissions based on container permission roles, offering a choice between a restrictive and an open sharing model. The open sharing model allows any container members and guest users with edit permissions to share files. The restrictive sharing model allows only container members who are either Owners or Managers to share files.
209+
210+
PARAMVALUE: $true | $false
208211

209212
```yaml
210-
Type: Guid[]
211-
Parameter Sets: (All)
212-
Aliases:
213-
214-
Required: False
213+
Type: Boolean
214+
Applicable: SharePoint Embedded
215215
Position: Named
216-
Default value: None
216+
Required: False
217+
Default value: True
217218
Accept pipeline input: False
218219
Accept wildcard characters: False
219220
```
220221

221-
### -WhoCanShareAuthenticatedGuestAllowList
222+
### -WhoCanShareAnonymousAllowList
222223

223-
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`.
224+
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`.
224225

225226
> [!NOTE]
226227
> This allow list only accepts security groups, and not Microsoft 365 Groups.
227228

228-
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.
229-
229+
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.
230230

231231
```yaml
232232
Type: Guid[]
@@ -240,29 +240,7 @@ Accept pipeline input: False
240240
Accept wildcard characters: False
241241
```
242242

243-
244-
### -WhoCanShareAnonymousAllowList
245-
246-
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`.
247-
248-
> [!NOTE]
249-
> This allow list only accepts security groups, and not Microsoft 365 Groups.
250-
251-
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.
252-
253-
```yaml
254-
Type: Guid[]
255-
Parameter Sets: (All)
256-
Aliases:
257-
Applicable: SharePoint Online
258-
Required: False
259-
Position: Named
260-
Default value: None
261-
Accept pipeline input: False
262-
Accept wildcard characters: False
263-
```
264-
265-
### WhoCanShareAuthenticatedGuestAllowList
243+
### -WhoCanShareAuthenticatedGuestAllowList
266244

267245
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`.
268246

@@ -271,45 +249,12 @@ Sets a container type-specific list of security groups who are allowed to share
271249

272250
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.
273251

274-
```yaml
275-
Type: Guid[]
276-
Parameter Sets: (All)
277-
Aliases:
278-
Applicable: SharePoint Online
279-
Required: False
280-
Position: Named
281-
Default value: None
282-
Accept pipeline input: False
283-
Accept wildcard characters: False
284-
```
285-
286-
### OverrideTenantWhoCanShareAnonymousAllowList
287-
288-
This setting determines if the container type `WhoCanShareAnonymousAllowList` overrides the tenant-level `WhoCanShareAnonymousAllowList`. The default value for this parameter is false.
289-
290-
PARAMVALUE: True | False
291252

292253
```yaml
293-
Type: Boolean
254+
Type: Guid[]
294255
Parameter Sets: (All)
295-
Applicable: SharePoint Online
296-
Required: False
297-
Position: Named
298-
Default value: None
299-
Accept pipeline input: False
300-
Accept wildcard characters: False
301-
```
302-
303-
### OverrideTenantWhoCanShareAuthenticatedGuestAllowList
304-
305-
This setting determines if the container type `WhoCanShareAuthenticatedGuestAllowList` overrides the tenant-level `WhoCanShareAuthenticatedGuestAllowList`. The default value for this parameter is false.
306-
307-
PARAMVALUE: True | False
256+
Aliases:
308257
309-
```yaml
310-
Type: Boolean
311-
Parameter Sets: (All)
312-
Applicable: SharePoint Online
313258
Required: False
314259
Position: Named
315260
Default value: None

0 commit comments

Comments
 (0)