Skip to content

Commit

Permalink
Merge pull request #5806 from JuliusRauschen/report-submission-policy…
Browse files Browse the repository at this point in the history
…-new-params

Add properties to EXOReportSubmissionPolicy
  • Loading branch information
NikCharlebois authored Feb 24, 2025
2 parents 3fd4329 + 7eb5dec commit 5697213
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ function Get-TargetResource
[System.String[]]
$ThirdPartyReportAddresses = @(),

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

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

[Parameter()]
[ValidateSet('Present', 'Absent')]
[System.String]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -344,6 +354,14 @@ function Set-TargetResource
[System.String[]]
$ThirdPartyReportAddresses = @(),

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

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

[Parameter()]
[ValidateSet('Present', 'Absent')]
[System.String]
Expand Down Expand Up @@ -538,6 +556,14 @@ function Test-TargetResource
[System.String[]]
$ThirdPartyReportAddresses = @(),

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

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

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

0 comments on commit 5697213

Please sign in to comment.