From 712ca050672b6ac801eefb4556bca09472ac0928 Mon Sep 17 00:00:00 2001 From: Wey Date: Sat, 18 Jan 2025 00:53:22 +0100 Subject: [PATCH] Ignore GroupConsent --- .../public/cisa/entra/Test-MtCisaAppGroupOwnerConsent.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/powershell/public/cisa/entra/Test-MtCisaAppGroupOwnerConsent.ps1 b/powershell/public/cisa/entra/Test-MtCisaAppGroupOwnerConsent.ps1 index 6c3ad33f..3123bdd6 100644 --- a/powershell/public/cisa/entra/Test-MtCisaAppGroupOwnerConsent.ps1 +++ b/powershell/public/cisa/entra/Test-MtCisaAppGroupOwnerConsent.ps1 @@ -23,6 +23,11 @@ function Test-MtCisaAppGroupOwnerConsent { return $null } + if ( $SettingsApiAvailable -notcontains 'EnableGroupSpecificConsent' ) { + Add-MtTestResultDetail -SkippedBecause 'Custom' -SkippedCustomReason 'Settings value is not available. This may be due to the change that this API is no longer available for recent created tenants.' + return $null + } + #May need update to https://learn.microsoft.com/en-us/graph/api/resources/teamsappsettings?view=graph-rest-1.0 $result = Invoke-MtGraphRequest -RelativeUri "settings" -ApiVersion beta