Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Shared VPC subnet permission Query

I have created shared VPC in the host project and attach a service project with it. But even I only set up the individual subnet access when attaching the service project, I can still view all subnets in the service project and use any of them to create the vm. Is it that because my role is `editor` of the folder?

Solved Solved
0 1 34
1 ACCEPTED SOLUTION

Hi @Xienan,

A user who has the compute.networkUser role in the host project can see all subnets within attached service projects. Check your resource hierarchy. 

You can restrict by giving this role at subnet level only. Please follow this.

View solution in original post

1 REPLY 1

Hi @Xienan,

A user who has the compute.networkUser role in the host project can see all subnets within attached service projects. Check your resource hierarchy. 

You can restrict by giving this role at subnet level only. Please follow this.