Related: if anyone has a method of achieving this query against GCP resources I'd be keen to learn that as well.
One of the major benefits of a centralized authorization system is allowing for permissions queries across resources and subjects from multiple different services/sources (of course, with the need to synchronize the data in)
Happy to expand on how some users do so, if you're curious.