My Firebase Cloud functions Gen1 and Gen2 run locally on Firebase Emulator and in production. It seams Gen1 and Gen2 run with different service accounts.
I get error messages about missing a permission. So I would like to check if the used service account has the correct roles.
How can I get (so I can print or log) the used service account?