diff --git a/CHANGELOG.md b/CHANGELOG.md index 149b0e1ba9..8db571f9d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,8 @@ values. * EXODistributionGroup * Changed logic to retrieve existing members by UserPrincipalName. +* EXOReportSubmissionPolicy + * Add ReportChatMessageEnabled, ReportChatMessageToCustomizedAddressEnabled * EXORoleGroup * Evaluating assigned users based on UPN and not just on DisplayName if they have an associated mailbox. diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOReportSubmissionPolicy/MSFT_EXOReportSubmissionPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOReportSubmissionPolicy/MSFT_EXOReportSubmissionPolicy.psm1 index 861b2084ec..9f2306d45c 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOReportSubmissionPolicy/MSFT_EXOReportSubmissionPolicy.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOReportSubmissionPolicy/MSFT_EXOReportSubmissionPolicy.psm1 @@ -105,6 +105,14 @@ function Get-TargetResource [System.String[]] $ThirdPartyReportAddresses = @(), + [Parameter()] + [System.Boolean] + $ReportChatMessageEnabled, + + [Parameter()] + [System.Boolean] + $ReportChatMessageToCustomizedAddressEnabled, + [Parameter()] [ValidateSet('Present', 'Absent')] [System.String] @@ -209,6 +217,8 @@ function Get-TargetResource ReportPhishAddresses = $ReportSubmissionPolicy.ReportPhishAddresses ReportPhishToCustomizedAddress = $ReportSubmissionPolicy.ReportPhishToCustomizedAddress ThirdPartyReportAddresses = $ReportSubmissionPolicy.ThirdPartyReportAddresses + ReportChatMessageEnabled = $ReportSubmissionPolicy.ReportChatMessageEnabled + ReportChatMessageToCustomizedAddressEnabled = $ReportSubmissionPolicy.ReportChatMessageToCustomizedAddressEnabled Credential = $Credential Ensure = 'Present' ApplicationId = $ApplicationId @@ -344,6 +354,14 @@ function Set-TargetResource [System.String[]] $ThirdPartyReportAddresses = @(), + [Parameter()] + [System.Boolean] + $ReportChatMessageEnabled, + + [Parameter()] + [System.Boolean] + $ReportChatMessageToCustomizedAddressEnabled, + [Parameter()] [ValidateSet('Present', 'Absent')] [System.String] @@ -538,6 +556,14 @@ function Test-TargetResource [System.String[]] $ThirdPartyReportAddresses = @(), + [Parameter()] + [System.Boolean] + $ReportChatMessageEnabled, + + [Parameter()] + [System.Boolean] + $ReportChatMessageToCustomizedAddressEnabled, + [Parameter()] [ValidateSet('Present', 'Absent')] [System.String] diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOReportSubmissionPolicy/MSFT_EXOReportSubmissionPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOReportSubmissionPolicy/MSFT_EXOReportSubmissionPolicy.schema.mof index f1a5df9d22..422b9dec9f 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOReportSubmissionPolicy/MSFT_EXOReportSubmissionPolicy.schema.mof +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOReportSubmissionPolicy/MSFT_EXOReportSubmissionPolicy.schema.mof @@ -27,6 +27,8 @@ class MSFT_EXOReportSubmissionPolicy : OMI_BaseResource [Write, Description("The ReportPhishAddresses parameter specifies the email address of the reporting mailbox in Exchange Online to receive user reported messages in reporting in Outlook using Microsoft or third-party reporting tools in Outlook.")] String ReportPhishAddresses[]; [Write, Description("The ReportPhishToCustomizedAddress parameter specifies whether to send user reported messages from Outlook (using Microsoft or third-party reporting tools) to the reporting mailbox as part of reporting in Outlook.")] Boolean ReportPhishToCustomizedAddress; [Write, Description("Use the ThirdPartyReportAddresses parameter to specify the email address of the reporting mailbox when you're using a third-party product for user submissions instead of reporting in Outlook.")] String ThirdPartyReportAddresses[]; + [Write, Description("TBD")] Boolean ReportChatMessageEnabled; + [Write, Description("TBD")] Boolean ReportChatMessageToCustomizedAddressEnabled; [Write, Description("Specifies if this report submission policy should exist."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; [Write, Description("Credentials of the Exchange Global Admin"), EmbeddedInstance("MSFT_Credential")] string Credential; [Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;