Azure AD: I want to fetch delegated as well as application permissions/consent based on appId.
To Lists delegated permission grants (OAuth2PermissionGrants) and application permissions grants (AppRoleAssignments) granted to an app in Azure Ad. Please use this script