1
votes

I'm trying to deploy Firebase Functions like so:

firebase deploy --only functions

However, I'm getting the following error:

Error: Missing permissions required for functions deploy. You must have permission iam.serviceAccounts.ActAs on service account [email protected]. To address this error, ask a project Owner to assign your account the "Service Account User" role from this URL: https://console.cloud.google.com/iam-admin/iam?xyz

I've already given myself Service Account User permission by going to

Identity -> Service Accounts -> [email protected] -> Permissions -> + Grant Access

I've added my email and service account linked in GOOGLE_APPLICATION_CREDENTIALS. I'm still getting the same error.

Any ideas?

1
do you have Owner or at least Editor role in your firebase console and not on GCP ? Check if you have role as owner or editor and then try50_Seconds _Of_Coding

1 Answers

2
votes

Can you verify that you are logged with the correct account and that you are linked to the project? You can double check by creating a new project and then in cli

$ firebase logout
$ firebase login
$ firebase init