From 5978546ececd1a36a181bf34c4a51462be92531e Mon Sep 17 00:00:00 2001 From: Harper Hults Date: Tue, 25 Mar 2025 11:18:14 -0700 Subject: [PATCH 1/6] Update Set-SPOTenant.md add new folderanonymouslinktypevalues --- sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md index d1d65b814..d62747df6 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md @@ -1354,11 +1354,12 @@ Accept wildcard characters: False ### -FolderAnonymousLinkType -Anonymous access links can allow recipients to only view or view and edit. +Users can configure folder anonymous access links that allow recipients to view, view and upload, or view, edit, and upload files. The valid values are: - View +- ViewUpload - Edit ```yaml From e2a7a238eb8e7d2ae3f23fb549c8f36437addceb Mon Sep 17 00:00:00 2001 From: Harper Hults Date: Mon, 2 Jun 2025 14:38:21 -0700 Subject: [PATCH 2/6] add AnonymousLinkExpirationInDays to Set-SPOContainerTypeConfiguration --- .../Set-SPOContainerTypeConfiguration.md | 147 ++++++------------ 1 file changed, 46 insertions(+), 101 deletions(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md index ebe86e7ef..c40d18987 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md @@ -22,7 +22,8 @@ Set-SPOContainerTypeConfiguration -ContainerTypeId [-DiscoverabilityDisab [-SharingRestricted ] [-ApplicationRedirectUrl ] [-WhoCanShareAnonymousAllowList ] [-WhoCanShareAuthenticatedGuestAllowList ] [-OverrideTenantWhoCanShareAnonymousAllowList ] [-OverrideTenantWhoCanShareAuthenticatedGuestAllowList ] - [[-CopilotEmbeddedChatHosts] ] [-WhatIf] [-Confirm] + [[-CopilotEmbeddedChatHosts] ] + [-AnonymousLinkExpirationInDays ] [-WhatIf] [-Confirm] [] ``` @@ -83,38 +84,25 @@ This example sets the host URLs for the container type with Id 4f0af585. ## PARAMETERS -### -DiscoverabilityDisabled - -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. -If you opt into the Microsoft 365 experience, your files will be integrated into Microsoft 365 environment, participating in intelligent file discovery. - -PARAMVALUE: $true | $false - -```yaml -Type: Boolean -Applicable: SharePoint Embedded -Position: Named -Required: False -Default value: True -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SharingRestricted - -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. +### -AnonymousLinkExpirationInDays +Specifies all anonymous links created after the value is set will expire after the set number of days. -PARAMVALUE: $true | $false +The value can be from 1 to 730 days. + +To defer to the tenant level setting, set the value to -1. ```yaml -Type: Boolean -Applicable: SharePoint Embedded -Position: Named +Type: Int32 +Parameter Sets: (All) +Aliases: + Required: False -Default value: True +Position: Named +Default value: None Accept pipeline input: False Accept wildcard characters: False ``` + ### -ApplicationRedirectUrl This parameter specifies the url of that the application should be redirected to. @@ -146,6 +134,7 @@ Default value: None Accept pipeline input: False Accept wildcard characters: False ``` + ### -CopilotEmbeddedChatHosts This parameter is used to add host URLs allowed to use the SharePoint Embedded application's declarative agent experience. @@ -161,6 +150,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DiscoverabilityDisabled + +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. +If you opt into the Microsoft 365 experience, your files will be integrated into Microsoft 365 environment, participating in intelligent file discovery. + +PARAMVALUE: $true | $false + +```yaml +Type: Boolean +Applicable: SharePoint Embedded +Position: Named +Required: False +Default value: True +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -OverrideTenantWhoCanShareAnonymousAllowList 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 Accept wildcard characters: False ``` -### -WhoCanShareAnonymousAllowList - -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`. - -> [!NOTE] -> This allow list only accepts security groups, and not Microsoft 365 Groups. +### -SharingRestricted -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. +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. + +PARAMVALUE: $true | $false ```yaml -Type: Guid[] -Parameter Sets: (All) -Aliases: - -Required: False +Type: Boolean +Applicable: SharePoint Embedded Position: Named -Default value: None +Required: False +Default value: True Accept pipeline input: False Accept wildcard characters: False ``` -### -WhoCanShareAuthenticatedGuestAllowList +### -WhoCanShareAnonymousAllowList -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`. +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`. > [!NOTE] > This allow list only accepts security groups, and not Microsoft 365 Groups. -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. - +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. ```yaml Type: Guid[] @@ -240,29 +240,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` - -### -WhoCanShareAnonymousAllowList - -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`. - -> [!NOTE] -> This allow list only accepts security groups, and not Microsoft 365 Groups. - -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. - -```yaml -Type: Guid[] -Parameter Sets: (All) -Aliases: -Applicable: SharePoint Online -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### WhoCanShareAuthenticatedGuestAllowList +### -WhoCanShareAuthenticatedGuestAllowList 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`. @@ -271,45 +249,12 @@ Sets a container type-specific list of security groups who are allowed to share 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. -```yaml -Type: Guid[] -Parameter Sets: (All) -Aliases: -Applicable: SharePoint Online -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### OverrideTenantWhoCanShareAnonymousAllowList - -This setting determines if the container type `WhoCanShareAnonymousAllowList` overrides the tenant-level `WhoCanShareAnonymousAllowList`. The default value for this parameter is false. - -PARAMVALUE: True | False ```yaml -Type: Boolean +Type: Guid[] Parameter Sets: (All) -Applicable: SharePoint Online -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### OverrideTenantWhoCanShareAuthenticatedGuestAllowList - -This setting determines if the container type `WhoCanShareAuthenticatedGuestAllowList` overrides the tenant-level `WhoCanShareAuthenticatedGuestAllowList`. The default value for this parameter is false. - -PARAMVALUE: True | False +Aliases: -```yaml -Type: Boolean -Parameter Sets: (All) -Applicable: SharePoint Online Required: False Position: Named Default value: None From 2f75c0dbfe53113b1b2c3a057cdaf98f35c62b62 Mon Sep 17 00:00:00 2001 From: Harper Hults Date: Tue, 3 Jun 2025 11:50:12 -0700 Subject: [PATCH 3/6] fix comments --- .../Set-SPOContainerTypeConfiguration.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md index c40d18987..13f0b0b23 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md @@ -152,10 +152,10 @@ Accept wildcard characters: False ### -DiscoverabilityDisabled -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. +As a SharePoint Administrator in Microsoft 365, you can control how your content appears in the Microsoft 365 experience. When this value is true, the SharePoint Embedded application content is hidden throughout the Microsoft 365 environment, including on office.com, onedrive.com, in recommended sections, or through other Microsoft intelligent file discovery features. If you opt into the Microsoft 365 experience, your files will be integrated into Microsoft 365 environment, participating in intelligent file discovery. -PARAMVALUE: $true | $false +PARAMVALUE: true | false ```yaml Type: Boolean @@ -169,7 +169,7 @@ Accept wildcard characters: False ### -OverrideTenantWhoCanShareAnonymousAllowList -This setting determines if the container type `WhoCanShareAnonymousAllowList` overrides the tenant-level `WhoCanShareAnonymousAllowList`. The default value for this parameter is false. +This setting determines if the container type `WhoCanShareAnonymousAllowList` overrides the tenant-level `WhoCanShareAnonymousAllowList`. PARAMVALUE: True | False @@ -180,14 +180,14 @@ Aliases: Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` ### -OverrideTenantWhoCanShareAuthenticatedGuestAllowList -This setting determines if the container type `WhoCanShareAuthenticatedGuestAllowList` overrides the tenant-level `WhoCanShareAuthenticatedGuestAllowList`. The default value for this parameter is false. +This setting determines if the container type `WhoCanShareAuthenticatedGuestAllowList` overrides the tenant-level `WhoCanShareAuthenticatedGuestAllowList`. PARAMVALUE: True | False @@ -198,7 +198,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ``` @@ -207,7 +207,7 @@ Accept wildcard characters: False 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. -PARAMVALUE: $true | $false +PARAMVALUE: true | false ```yaml Type: Boolean From 4c6470ebd3d1a8dba0e51fed3a2a7796f82304c5 Mon Sep 17 00:00:00 2001 From: Harper Hults Date: Tue, 3 Jun 2025 11:51:04 -0700 Subject: [PATCH 4/6] fix comments --- sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md index 110670a4c..dba634a05 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md @@ -1361,6 +1361,7 @@ The valid values are: - View - ViewUpload - Edit +- None ```yaml Type: AnonymousLinkType From 72003faff240997f6d38d567eb17d32b837688d9 Mon Sep 17 00:00:00 2001 From: Harper Hults Date: Tue, 3 Jun 2025 11:52:38 -0700 Subject: [PATCH 5/6] capitalization --- .../sharepoint-online/Set-SPOContainerTypeConfiguration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md index 13f0b0b23..24ce3bc0b 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOContainerTypeConfiguration.md @@ -155,7 +155,7 @@ Accept wildcard characters: False As a SharePoint Administrator in Microsoft 365, you can control how your content appears in the Microsoft 365 experience. When this value is true, the SharePoint Embedded application content is hidden throughout the Microsoft 365 environment, including on office.com, onedrive.com, in recommended sections, or through other Microsoft intelligent file discovery features. If you opt into the Microsoft 365 experience, your files will be integrated into Microsoft 365 environment, participating in intelligent file discovery. -PARAMVALUE: true | false +PARAMVALUE: True | False ```yaml Type: Boolean @@ -207,7 +207,7 @@ Accept wildcard characters: False 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. -PARAMVALUE: true | false +PARAMVALUE: True | False ```yaml Type: Boolean From 9307247e442e309c5a81ecf293655102c97d1110 Mon Sep 17 00:00:00 2001 From: Harper Hults Date: Tue, 3 Jun 2025 13:57:48 -0700 Subject: [PATCH 6/6] revert none value addition --- sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md | 1 - 1 file changed, 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md index dba634a05..110670a4c 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md @@ -1361,7 +1361,6 @@ The valid values are: - View - ViewUpload - Edit -- None ```yaml Type: AnonymousLinkType