From 6f5b8753b2086120a2dfe1e8ea30c80fa6a266ab Mon Sep 17 00:00:00 2001 From: John Duprey Date: Thu, 5 Jun 2025 16:19:53 -0400 Subject: [PATCH] Update Invoke-listStandardTemplates.ps1 --- .../Tenant/Standards/Invoke-listStandardTemplates.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-listStandardTemplates.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-listStandardTemplates.ps1 index 717939a6655c6..ba4abdb48e305 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-listStandardTemplates.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-listStandardTemplates.ps1 @@ -29,6 +29,11 @@ function Invoke-listStandardTemplates { return } $Data | Add-Member -NotePropertyName 'GUID' -NotePropertyValue $_.GUID -Force + + if (!$Data.excludedTenants) { + $Data | Add-Member -NotePropertyName 'excludedTenants' -NotePropertyValue @() -Force + } + if ($Data.excludedTenants -and $Data.excludedTenants -ne 'excludedTenants') { $Data.excludedTenants = @($Data.excludedTenants) } else {