Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save moiaune/b6ed6ffc126cb80d22c558f7218ede34 to your computer and use it in GitHub Desktop.
Save moiaune/b6ed6ffc126cb80d22c558f7218ede34 to your computer and use it in GitHub Desktop.
Get-AzADAppPermission -ObjectId <object_id> |
Foreach-Object {
$permissionId = $_.Id
(Get-AzADServicePrincipal -DisplayName "Microsoft Graph").Oauth2PermissionScope |
Where-Object { $_.Id -eq $permissionId }
} | Select-Object Id, Value, AdminConsentDisplayName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment