Skip to content

Commit

Permalink
Merge pull request #4092 from kiloActual/NewProperty-TeamsMessagingPo…
Browse files Browse the repository at this point in the history
…licy-#4021

Added support for new property - TeamsMessagingPolicy
  • Loading branch information
NikCharlebois authored Dec 29, 2023
2 parents 5018599 + 076c318 commit 8debb1d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ function Get-TargetResource
[System.Boolean]
$AllowUserDeleteChat,

[Parameter()]
[System.Boolean]
$AllowVideoMessages,

[Parameter()]
[System.String]
[ValidateSet('DisabledUserOverride', 'EnabledUserOverride')]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -293,6 +298,10 @@ function Set-TargetResource
[System.Boolean]
$AllowUserDeleteChat,

[Parameter()]
[System.Boolean]
$AllowVideoMessages,

[Parameter()]
[System.String]
[ValidateSet('DisabledUserOverride', 'EnabledUserOverride')]
Expand Down Expand Up @@ -465,6 +474,10 @@ function Test-TargetResource
[System.Boolean]
$AllowUserDeleteChat,

[Parameter()]
[System.Boolean]
$AllowVideoMessages,

[Parameter()]
[System.String]
[ValidateSet('DisabledUserOverride', 'EnabledUserOverride')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8debb1d

Please sign in to comment.