Is there a way/ API which also lists the permissions under "Other permissions granted for tenant"? Thanks.
You can List appRoleAssignments to get all the application permissions which have been granted to a service principal.
GET https://graph.microsoft.com/v1.0/servicePrincipals/{service_principal_object_id}/appRoleAssignments
{service_principal_object_id}
is the object id of the enterprise application associated with the app registration.
Find it here:
Please note this API lists all the application permissions, including Configured permissions and Other permissions granted for tenant.