So I have a Google Cloud Service Account one sa-1@myproject.iam.gserviceaccount.com
that has access to roles A and B.
There is Service Account two sa-2@myproject.iam.gserviceaccount.com
which I need to have access to roles A, B, and C.
How do I get sa-2
to have the same access as sa-1
and some other access too?
I tried to add sa-2
as a principal to sa-1
with the Service Account Admin
role.
- IAM & Admin
- Service Accounts
- Select
sa-1
- "+ Grant Access"
- Specify
sa-2
in dropdown forNew principals
- Click "Save"
But there is still access denied on the GCP service using the sa-2
account.
I'm trying to get an inherited relationship between the two SAs.