Skip to content

Commit 0fd3315

Browse files
committed
chore: disable cippcommand action
previously removed in UI, not needed anymore C-004
1 parent a17137c commit 0fd3315

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

Modules/CIPPCore/Public/Webhooks/Invoke-CIPPWebhookProcessing.ps1

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Invoke-CippWebhookProcessing {
7979
"Completed BEC Remediate for $Username"
8080
Write-LogMessage -API 'BECRemediate' -tenant $tenantfilter -message "Executed Remediation for $Username" -sev 'Info'
8181
}
82-
'cippcommand' {
82+
<#'cippcommand' {
8383
$CommandSplat = @{}
8484
$action.parameters.psobject.properties | ForEach-Object { $CommandSplat.Add($_.name, $_.value) }
8585
if ($CommandSplat['userid']) { $CommandSplat['userid'] = $Data.UserId }
@@ -88,6 +88,9 @@ function Invoke-CippWebhookProcessing {
8888
if ($CommandSplat['user']) { $CommandSplat['user'] = $Data.UserId }
8989
if ($CommandSplat['username']) { $CommandSplat['username'] = $Data.UserId }
9090
& $action.command.value @CommandSplat
91+
}#>
92+
default {
93+
Write-Host "Unknown action: $action"
9194
}
9295
}
9396
}
@@ -146,12 +149,12 @@ function Invoke-CippWebhookProcessing {
146149
}
147150
'generateWebhook' {
148151
$CippAlert = @{
149-
Type = 'webhook'
150-
Title = $GenerateJSON.Title
151-
JSONContent = $JsonContent
152-
TenantFilter = $TenantFilter
153-
APIName = 'Audit Log Alerts'
154-
SchemaSource = 'Audit Log Alert'
152+
Type = 'webhook'
153+
Title = $GenerateJSON.Title
154+
JSONContent = $JsonContent
155+
TenantFilter = $TenantFilter
156+
APIName = 'Audit Log Alerts'
157+
SchemaSource = 'Audit Log Alert'
155158
InvokingCommand = 'Start-AuditLogProcessingOrchestrator'
156159
}
157160
Write-Host 'Sending Webhook Content'

0 commit comments

Comments
 (0)