I have two apple developer accounts. A business one, and a personal one.
I have previously deployed functions from my business account, yet now, when I try and deploy from my personal account I being told that the business account does not have permissions to access the project - obviously, as it's from a seperate account.
Waiting for authentication...
✔ Success! Logged in as {Personal account}
Ste@Stephens-MacBook-Pro {Personal project} % firebase deploy --only functions
Error: Missing permissions required for functions deploy. You must have permission iam.serviceAccounts.ActAs on service account {Business project}@appspot.gserviceaccount.com.
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?project={Business project}
I've used the following several times to logout and login to the new account.
Ste@Stephens-MacBook-Pro {Personal project} % firebase logout ✔
Logged out from {Business account} Ste@Stephens-MacBook-Pro
{Personal project} % firebase login
I've even removed Firebase CLI and reinstalled it but I still get the same error. I must be missing something but I can't work out where the link to the business account is being held.