https://azuread.github.io/MSIdentityTools/commands/Export-MsIdAppConsentGrantReport/
Export-MsIdAppConsentGrantReport | MSIdentityTools
Lists and categorizes privilege for delegated permissions (OAuth2PermissionGrants) and application permissions (AppRoleAssignments).
export