Skip to content

Commit

Permalink
pushing cippauditlogsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Oct 2, 2024
1 parent afd346e commit f0bf845
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Modules/CIPPCore/Public/AuditLogs/New-CippAuditLogSearch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ function New-CippAuditLogSearch {
)]
[string[]]$RecordTypeFilters,
[Parameter()]
[string]$KeywordFilter,
[string]$KeywordFilters,
[Parameter()]
[string]$ServiceFilter,
[string[]]$ServiceFilters,
[Parameter()]
[string[]]$OperationsFilters,
[Parameter()]
[string[]]$UserPrincipalNameFilters,
[Parameter()]
[string[]]$IPAddressFilter,
[string[]]$IPAddressFilters,
[Parameter()]
[string[]]$ObjectIdFilters,
[Parameter()]
Expand All @@ -135,19 +135,19 @@ function New-CippAuditLogSearch {
if ($RecordTypeFilters) {
$SearchParams.recordTypeFilters = @($RecordTypeFilters)
}
if ($KeywordFilter) {
$SearchParams.keywordFilter = $KeywordFilter
if ($KeywordFilters) {
$SearchParams.keywordFilters = $KeywordFilters
}
if ($ServiceFilter) {
$SearchParams.serviceFilter = $ServiceFilter
if ($ServiceFilters) {
$SearchParams.serviceFilters = $ServiceFilters
}
if ($UserPrincipalNameFilters) {
$SearchParams.userPrincipalNameFilters = @($UserPrincipalNameFilters)
}
if ($IPAddressFilter) {
$SearchParams.ipAddressFilter = @($IPAddressFilter)
if ($IPAddressFilters) {
$SearchParams.ipAddressFilters = @($IPAddressFilters)
}
if ($ObjectIdFilters) {
if ($ObjectIdFilterss) {
$SearchParams.objectIdFilters = @($ObjectIdFilters)
}
if ($AdministrativeUnitFilters) {
Expand Down

0 comments on commit f0bf845

Please sign in to comment.