From 7feb89d9a710e5faaf7e926271c91d9765d17523 Mon Sep 17 00:00:00 2001 From: Apurv Prajapati Date: Sun, 24 Dec 2023 02:27:59 +0530 Subject: [PATCH] Added support for new property - TeamsMessagingPolicy --- CHANGELOG.md | 5 +++++ .../MSFT_TeamsMessagingPolicy.psm1 | 13 +++++++++++++ .../MSFT_TeamsMessagingPolicy.schema.mof | 1 + 3 files changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70a49f2e9e..c56a887546 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change log for Microsoft365DSC +# UNRELEASED +* TeamsMessagingPolicy + * Added support for property 'AllowVideoMessages' + FIXES [#4021](https://github.com/microsoft/Microsoft365DSC/issues/4021) + # 1.23.1220.1 * AADEntitlementManagementAccessPackage 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;