Skip to content

Instantly share code, notes, and snippets.

View karimelmel's full-sized avatar

Karim El-Melhaoui karimelmel

View GitHub Profile
@karimelmel
karimelmel / Get-AzureADPSPermissions.ps1
Created August 10, 2022 11:48 — forked from psignoret/Get-AzureADPSPermissions.ps1
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,