Reputation: 42444
I am using service account credential to deploy cloud function
to GCP. I got a permission error:
Error: googleapi: Error 403: Missing necessary permission iam.serviceAccounts.actAs for $MEMBER on the service account
I open the service account permission in GCP but I can't find where I can add the role to the account.
Below is the screenshot of the service account. There is GRANT ACCESS
button but it is used to grant member access to this account. How can I add roles on the role list?
Upvotes: 4
Views: 4227
Reputation: 713
As of October 2023:
Upvotes: 1
Reputation: 1235
Recapping what John said:
You do not need to grant permissions to the Service Account.
You need to grant permission to user so that they can act as that Service Account.
TL;DR:
On the screen you provided, select Grant access, enter username and pick Service Account User role.
Upvotes: -1