Skip to content

Instantly share code, notes, and snippets.

@psignoret
psignoret / Get-AzureADPSPermissions.ps1
Last active May 26, 2021
Script to list all delegated permissions and application permissions in Azure AD
View Get-AzureADPSPermissions.ps1
<#
.SYNOPSIS
Lists delegated permissions (OAuth2PermissionGrants) and application permissions (AppRoleAssignments).
.PARAMETER DelegatedPermissions
If set, will return delegated permissions. If neither this switch nor the ApplicationPermissions switch is set,
both application and delegated permissions will be returned.
.PARAMETER ApplicationPermissions
If set, will return application permissions. If neither this switch nor the DelegatedPermissions switch is set,