Skip to content

Commit 19ca56d

Browse files
updates to caches
1 parent ac8b589 commit 19ca56d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecCombinedSetup.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ Function Invoke-ExecCombinedSetup {
5151
}
5252
}
5353
if ($Request.body.email -or $Request.body.webhook) {
54-
$notificationConfig = $request.body
54+
#create hashtable from pscustomobject
55+
$notificationConfig = $request.body | Select-Object email, webhook, onepertenant, logsToInclude, sendtoIntegration, sev | ConvertTo-Json | ConvertFrom-Json -AsHashtable
5556
$notificationResults = Set-CIPPNotificationConfig @notificationConfig
5657
$Results.add($notificationResults)
5758
}

Modules/CIPPCore/Public/GraphHelper/Remove-CIPPCache.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Remove-CIPPCache {
88
)
99
# Remove all tenants except excluded
1010
$TenantsTable = Get-CippTable -tablename 'Tenants'
11-
$Filter = "PartitionKey eq 'Tenants' and Excluded eq false"
11+
$Filter = "PartitionKey eq 'Tenants' and Excluded eq false and delegatedPrivilegeStatus eq 'granularDelegatedAdminPrivileges'"
1212
$ClearIncludedTenants = Get-CIPPAzDataTableEntity @TenantsTable -Filter $Filter -Property PartitionKey, RowKey
1313
if ($ClearIncludedTenants) {
1414
Remove-AzDataTableEntity -Force @TenantsTable -Entity $ClearIncludedTenants

0 commit comments

Comments
 (0)