Kaffeeundcode
Script Library
PowerShell 01.06.2026

Script Workspace

List ConsentGrantPolicies

Review the purpose, inspect the code, then test it safely in your own tenant.

138_List-ConsentGrantPolicies.ps1

<#
.SYNOPSIS
    Listet Consent Policies (App Permissions) auf.
    
.DESCRIPTION
    Zeigt Richtlinien für User Consent zu Apps.
    Erfordert die Berechtigung 'Policy.Read.All'.

.NOTES
    File Name: 138_List-ConsentGrantPolicies.ps1
    Author: Mattia Cirillo
    Version: 1.0
#>

param()

Connect-MgGraph -Scopes "Policy.Read.All"
Get-MgPolicyPermissionGrantPolicy