The only way to get such data is to query each tenant individually, and to do that you will of course need sufficient permissions within each tenant.
How to get all role assigned users from all tenants that installed my Azure App Registration, from App ID?
I have an App Registration that supports multiple organizations / multi-tenants (and I have the corresponding client_id and client_secret). I am trying to get the list of all users who have assigned roles across all tenants that installed my enterprise application. I tried using /servicePrincipals(appId='{appId}')/appRoleAssignedTo
but this only gives me users in my organization directory instead of across all tenants and their organization directories for the specified appId.
https://learn.microsoft.com/en-us/graph/api/serviceprincipal-list-approleassignedto?view=graph-rest-1.0&tabs=http
Is there a Graph query that such that I can fetch all role assigned users across all tenants for this specific appId?