Skip to content

Instantly share code, notes, and snippets.

View ryandriftingfat's full-sized avatar

ryandriftingfat

View GitHub Profile
@psignoret
psignoret / Get-AzureADPSPermissions.ps1
Last active April 17, 2024 14:38
Script to list all delegated permissions and application permissions in Azure AD
<#
.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,