From 9a9f01d1d4528ad335efa14283a76156e6c2b3ef Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Mon, 25 Aug 2025 22:28:22 -0700 Subject: [PATCH 1/9] Update Set-CsTeamsFilesPolicy documentation Removed the -AutoShareFilesInExternalChats parameter from the documentation and updated the default value for -FileSharingInChatswithExternalUsers. --- .../MicrosoftTeams/Set-CsTeamsFilesPolicy.md | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md index 0e2848efb2..3258e361a4 100644 --- a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md @@ -45,22 +45,6 @@ The command shown in Example 2 changes the DefaultFileUploadAppId to AppId_GUID ## PARAMETERS -### -AutoShareFilesInExternalChats - -Indicates if file scope will be changed automatically when sharing files and loops in chats with external or guest users. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Confirm Prompts you for confirmation before executing the command. @@ -93,7 +77,8 @@ Accept wildcard characters: False ### -FileSharingInChatswithExternalUsers -Indicates if file sharing in chats with external users is enabled. +Indicates if file sharing in chats with external users is enabled. It is by default enabled, to disable admins can run following command. +Set-CsTeamsFilesPolicy -Identity "Global" -FileSharingInChatswithExternalUsers Disabled ```yaml Type: String @@ -102,7 +87,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: Enabled Accept pipeline input: False Accept wildcard characters: False ``` From c77babe27ae9a847966262d965dd8e3cbad2998b Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Mon, 25 Aug 2025 22:30:42 -0700 Subject: [PATCH 2/9] Change default value of AutoShareFilesInExternalChats to Enabled --- teams/teams-ps/MicrosoftTeams/Set-CsTeamsMessagingPolicy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsMessagingPolicy.md b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsMessagingPolicy.md index 5d867c419e..826bad63d8 100644 --- a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsMessagingPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsMessagingPolicy.md @@ -825,7 +825,7 @@ Type: System.String Parameter Sets: (All) Required: False Position: Named -Default value: Disabled +Default value: Enabled Accept pipeline input: False Accept wildcard characters: False ``` From b4bacd7d626a85b9d51b3fbd4073b62c1578d702 Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Mon, 25 Aug 2025 22:31:40 -0700 Subject: [PATCH 3/9] Update New-CsTeamsFilesPolicy.md parameters Removed AutoShareFilesInExternalChats parameter details and updated DefaultFileUploadAppId default value to Enabled. --- .../MicrosoftTeams/New-CsTeamsFilesPolicy.md | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md b/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md index 02cdf64b03..ff961d8ed7 100644 --- a/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md @@ -35,22 +35,6 @@ The command shown in Example 1 creates a per-user teams files policy CustomTeams ## PARAMETERS -### -AutoShareFilesInExternalChats - -Indicates if file scope will be changed automatically when sharing files and loops in chats with external or guest users. - -```yaml -Type: String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultFileUploadAppId This can be used by the 3p apps to configure their app, so when the files will be dragged and dropped in compose, it will get uploaded in that 3P app. @@ -77,7 +61,7 @@ Aliases: Required: False Position: Named -Default value: None +Default value: Enabled Accept pipeline input: False Accept wildcard characters: False ``` From ee40daba34dda28ff78df4d343c2ab56f2343573 Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Mon, 25 Aug 2025 22:32:29 -0700 Subject: [PATCH 4/9] Change default value of messaging policy to Enabled --- teams/teams-ps/MicrosoftTeams/New-CsTeamsMessagingPolicy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teams/teams-ps/MicrosoftTeams/New-CsTeamsMessagingPolicy.md b/teams/teams-ps/MicrosoftTeams/New-CsTeamsMessagingPolicy.md index 3efbfe0e8b..9b5f422ea3 100644 --- a/teams/teams-ps/MicrosoftTeams/New-CsTeamsMessagingPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/New-CsTeamsMessagingPolicy.md @@ -769,7 +769,7 @@ Type: System.String Parameter Sets: (All) Required: False Position: Named -Default value: Disabled +Default value: Enabled Accept pipeline input: False Accept wildcard characters: False ``` From bf45851922e81d4dccb7bf0829872d88e9894fe8 Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Mon, 25 Aug 2025 22:37:53 -0700 Subject: [PATCH 5/9] Fix formatting in Set-CsTeamsFilesPolicy.md --- teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md index 3258e361a4..fc6cc5dd00 100644 --- a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md @@ -78,7 +78,7 @@ Accept wildcard characters: False ### -FileSharingInChatswithExternalUsers Indicates if file sharing in chats with external users is enabled. It is by default enabled, to disable admins can run following command. -Set-CsTeamsFilesPolicy -Identity "Global" -FileSharingInChatswithExternalUsers Disabled +Set-CsTeamsFilesPolicy -Identity Global -FileSharingInChatswithExternalUsers Disabled ```yaml Type: String From b54afec9ba0d2ac76797d55d25963595feb8235f Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Mon, 25 Aug 2025 22:44:30 -0700 Subject: [PATCH 6/9] Update New-CsTeamsFilesPolicy.md with disable command Added command to disable file sharing in chats with external users. --- teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md b/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md index ff961d8ed7..979cc9a23f 100644 --- a/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md @@ -52,7 +52,10 @@ Accept wildcard characters: False ### -FileSharingInChatswithExternalUsers -Indicates if file sharing in chats with external users is enabled. +Indicates if file sharing in chats with external users is enabled. It is by default enabled, to disable admins can run following command. +```powershell +Set-CsTeamsFilesPolicy -Identity Global -FileSharingInChatswithExternalUsers Disabled +``` ```yaml Type: String From 9389659020a8ec2988ae5b3f9f8a3698ae8222d2 Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Mon, 25 Aug 2025 22:45:10 -0700 Subject: [PATCH 7/9] Document command to disable external file sharing Added command to disable file sharing in chats with external users. --- teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md index fc6cc5dd00..d143e4b1b9 100644 --- a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md @@ -78,7 +78,9 @@ Accept wildcard characters: False ### -FileSharingInChatswithExternalUsers Indicates if file sharing in chats with external users is enabled. It is by default enabled, to disable admins can run following command. +```powershell Set-CsTeamsFilesPolicy -Identity Global -FileSharingInChatswithExternalUsers Disabled +``` ```yaml Type: String From b40627e2b76be9f9cfb3ad29ed0d2de691a7448b Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Tue, 2 Sep 2025 10:04:00 -0700 Subject: [PATCH 8/9] Remove AutoShareFilesInExternalChats parameter --- teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md index d143e4b1b9..1b9c3d1c5c 100644 --- a/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/Set-CsTeamsFilesPolicy.md @@ -18,7 +18,7 @@ The policies also specify third-party app ID to allow file storage (e.g., Box). ```powershell Set-CsTeamsFilesPolicy [-NativeFileEntryPoints ] [-SPChannelFilesTab ] - [-DefaultFileUploadAppId ] [-FileSharingInChatswithExternalUsers ] [-AutoShareFilesInExternalChats ] + [-DefaultFileUploadAppId ] [-FileSharingInChatswithExternalUsers ] [-Identity] [-Force] [-WhatIf] [-Confirm] [] ``` From 7101ca5cb0eac7f1e14d257587b41b3bd1c7ec0a Mon Sep 17 00:00:00 2001 From: gramirez-msft <107440325+gramirez-msft@users.noreply.github.com> Date: Tue, 2 Sep 2025 10:04:25 -0700 Subject: [PATCH 9/9] Remove AutoShareFilesInExternalChats parameter --- teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md b/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md index 979cc9a23f..1536461b5f 100644 --- a/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md +++ b/teams/teams-ps/MicrosoftTeams/New-CsTeamsFilesPolicy.md @@ -16,7 +16,7 @@ Creates a new teams files policy. ``` New-CsTeamsFilesPolicy [-NativeFileEntryPoints ] [-SPChannelFilesTab ] - [-DefaultFileUploadAppId ] [-FileSharingInChatswithExternalUsers ] [-AutoShareFilesInExternalChats ] + [-DefaultFileUploadAppId ] [-FileSharingInChatswithExternalUsers ] [-Identity] [-Force] [-WhatIf] [-Confirm] [] ```