Query that shows permission per user

Hi,
Is there any query that shows the permissions per user by joining the catalog tables for users, groups, roles and permissions.

That might be possible to create. I don’t have it on hand.

For a single user, you can find their permissions using: