diff --git a/CHANGELOG.md b/CHANGELOG.md index 32ed417ae2..f1ea4108be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ * SPOTenantSettings * Fix bug for DisabledWebPartIds type, should be an array instead of a string FIXES [#4086](https://github.com/microsoft/Microsoft365DSC/issues/4086) +* TeamsMessagingPolicy + * Added support for property 'AllowVideoMessages' + FIXES [#4021](https://github.com/microsoft/Microsoft365DSC/issues/4021) # 1.23.1220.1 diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.psm1 index a7c77f4b8c..8f886a2671 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.psm1 @@ -80,6 +80,10 @@ function Get-TargetResource [System.Boolean] $AllowUserDeleteChat, + [Parameter()] + [System.Boolean] + $AllowVideoMessages, + [Parameter()] [System.String] [ValidateSet('DisabledUserOverride', 'EnabledUserOverride')] @@ -188,6 +192,7 @@ function Get-TargetResource AllowRemoveUser = $policy.AllowRemoveUser AllowPriorityMessages = $policy.AllowPriorityMessages AllowUserDeleteChat = $policy.AllowUserDeleteChat + AllowVideoMessages = $policy.AllowVideoMessages ChannelsInChatListEnabledType = $policy.ChannelsInChatListEnabledType AudioMessageEnabledType = $policy.AudioMessageEnabledType Description = $policy.Description @@ -293,6 +298,10 @@ function Set-TargetResource [System.Boolean] $AllowUserDeleteChat, + [Parameter()] + [System.Boolean] + $AllowVideoMessages, + [Parameter()] [System.String] [ValidateSet('DisabledUserOverride', 'EnabledUserOverride')] @@ -465,6 +474,10 @@ function Test-TargetResource [System.Boolean] $AllowUserDeleteChat, + [Parameter()] + [System.Boolean] + $AllowVideoMessages, + [Parameter()] [System.String] [ValidateSet('DisabledUserOverride', 'EnabledUserOverride')] diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.schema.mof index 0e29efb6ce..0dca96be54 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.schema.mof +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.schema.mof @@ -20,6 +20,7 @@ class MSFT_TeamsMessagingPolicy : OMI_BaseResource [Write, Description("Determines whether a user is allowed to remove a user from a conversation. Set this to TRUE to allow. Set this FALSE to prohibit.")] boolean AllowRemoveUser; [Write, Description("Determines whether a user is allowed to send priorities messages. Set this to TRUE to allow. Set this FALSE to prohibit.")] boolean AllowPriorityMessages; [Write, Description("Turn this setting on to allow users to permanently delete their 1:1, group chat, and meeting chat as participants (this deletes the chat only for them, not other users in the chat).")] boolean AllowUserDeleteChat; + [Write, Description("Determines whether a user is allowed to send video messages in Chat. Set this to TRUE to allow a user to send video messages. Set this to FALSE to prohibit sending video messages.")] boolean AllowVideoMessages; [Write, Description("Provide a description of your policy to identify purpose of creating it.")] string Description; [Write, Description("Determines the Giphy content restrictions applicable to a user. Set this to STRICT, MODERATE or NORESTRICTION."),ValueMap{"STRICT","MODERATE","NORESTRICTION"}, Values{"STRICT","MODERATE","NORESTRICTION"}] string GiphyRatingType; [Write, Description("Use this setting to specify whether read receipts are user controlled, enabled for everyone, or disabled. Set this to UserPreference, Everyone or None."),ValueMap{"UserPreference","Everyone","None"}, Values{"UserPreference","Everyone","None"}] string ReadReceiptsEnabledType;