Skip to content

Commit

Permalink
Merge pull request #1 from arrerezai/nameChangeUpdate
Browse files Browse the repository at this point in the history
Update validateAccess.ps1
  • Loading branch information
arrerezai authored Aug 17, 2024
2 parents 687ab6a + e8920f0 commit ebd71fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwsh/dev/functions/validateAccess.ps1
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@
$uri = "$($azAPICallConf['azAPIEndpointUrls'].MicrosoftGraph)/beta/privilegedAccess/azureResources/resources?`$select=id,displayName,type,externalId" + $uriExt
$res = AzAPICall -AzAPICallConfiguration $azapicallConf -uri $uri -currentTask $currentTask -validateAccess
if ($res -eq 'failed') {
$permissionCheckResults += "MSGraph API 'PrivilegedAccess.Read.AzureResources' permission - check FAILED - if you cannot grant this permission or you do not have an AAD Premium 2 license then use parameter -NoPIMEligibility"
$permissionCheckResults += "MSGraph API 'PrivilegedAccess.Read.AzureResources' permission - check FAILED - if you cannot grant this permission or you do not have a Microsoft Entra ID P2 license, then use parameter -NoPIMEligibility"
$permissionsCheckFailed = $true
}
else {
@@ -156,4 +156,4 @@
if ($azAPICallConf['htParameters'].accountType -eq 'User') {
validateLeastPrivilegeForUser
}
}
}

0 comments on commit ebd71fe

Please sign in to comment.