Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add properties to EXOReportSubmissionPolicy #5806

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,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