Skip to content

Commit

Permalink
Merge pull request #629 from weyCC81/wey-EntraSkipGroupConsent
Browse files Browse the repository at this point in the history
Update for MS.AAD.5.4 - GroupConsent
  • Loading branch information
merill authored Feb 13, 2025
2 parents caf246b + f7d2f5b commit a6c4362
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Checks if group owners can consent to apps
Expand All @@ -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 recently 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

Expand Down

0 comments on commit a6c4362

Please sign in to comment.