From 1a65fa7e7fbe5c4613476bbd0780b596fec38de6 Mon Sep 17 00:00:00 2001 From: KelvinTegelaar <49186168+KelvinTegelaar@users.noreply.github.com> Date: Wed, 3 Dec 2025 11:29:47 +0100 Subject: [PATCH 1/2] fixes subscription link --- .../HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 index a9ef82959f51..5cfe2e0565fe 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBackendURLs.ps1 @@ -7,7 +7,7 @@ function Invoke-ExecBackendURLs { #> [CmdletBinding()] param($Request, $TriggerMetadata) - $Subscription = ($env:WEBSITE_OWNER_NAME).split('+') | Select-Object -First 1 + $Subscription = $env:WEBSITE_OWNER_NAME -split '\+' | Select-Object -First 1 $SWAName = $env:WEBSITE_SITE_NAME -replace 'cipp', 'CIPP-SWA-' # Write to the Azure Functions log stream. From fd465fbae21d141beab8f212e4506cc06a2990b9 Mon Sep 17 00:00:00 2001 From: KelvinTegelaar <49186168+KelvinTegelaar@users.noreply.github.com> Date: Wed, 3 Dec 2025 12:02:26 +0100 Subject: [PATCH 2/2] Fixes #4982 --- .../Administration/Groups/Invoke-ListGroupTemplates.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1 index f2f642edc5d8..b7cbbbfcb4a5 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-ListGroupTemplates.ps1 @@ -13,11 +13,10 @@ function Invoke-ListGroupTemplates { $Table = Get-CippTable -tablename 'templates' $Filter = "PartitionKey eq 'GroupTemplate'" $Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter) | ForEach-Object { - $data = $_.JSON | ConvertFrom-Json - + $data = $_.JSON | ConvertFrom-Json -ErrorAction SilentlyContinue # Normalize groupType to camelCase for consistent frontend handling # Handle both stored normalized values and legacy values - $normalizedGroupType = switch -Wildcard ($data.groupType.ToLower()) { + $normalizedGroupType = switch -Wildcard ($data.groupType) { # Already normalized values (most common) 'dynamicdistribution' { 'dynamicDistribution'; break } 'azurerole' { 'azureRole'; break }