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

In IAM what is the current name for "Compute Shared VPC Admin"

The Shared VPC documentation says that setting up the Host VPC requires "Compute Shared VPC Admin" or compute.xpnAdmin permissions.  When using AIM Grant Access form, the Select a Role filter says No Matches when I search for either of those terms.

What is the correct IAM Role to assign for Host VPC Administrators?

Note: I found one "Solved" question but it references the same terms that don't appear in IAM.

https://www.googlecloudcommunity.com/gc/Data-Analytics/The-caller-does-not-have-permission-Cloud-Com...

Solved Solved
0 4 464
2 ACCEPTED SOLUTIONS

SOLVED!  The "Compute Shared VPC Admin" role can only be assigned at the FOLDER or ORG level, not at the Project level. (whine: it'd be nice if that was noted somewhere in IAM or the VPC docs. The Shared VPC doc kinda almost says this but it's not particularly clear that this is NOT a Project Role)

I found this solution buried in stackoverflow responses.  THANK YOU Stackoverflow!

https://stackoverflow.com/questions/66700942/googleapi-error-403-required-compute-organizations-enab...

View solution in original post

In an idealer world I suggest the following Use Cases:

  • UC1
    • from a Project, open IAM Grant Access and "Assign Role" Filter
    • start typing something like "Compute Shared VPC Admin"
    • Filter results include "Compute Shared VPC Admin" in RED with hover text indicating "Only assignable to an Organization or Folder"
  • UC2
    • enter a Filter like "compute/xpnAdmin"
    • Filter results include Roles that include compute/xpnAdmin
    • Again, RED (or similar) if the role exists but is not usable in the current context

View solution in original post

4 REPLIES 4

SOLVED!  The "Compute Shared VPC Admin" role can only be assigned at the FOLDER or ORG level, not at the Project level. (whine: it'd be nice if that was noted somewhere in IAM or the VPC docs. The Shared VPC doc kinda almost says this but it's not particularly clear that this is NOT a Project Role)

I found this solution buried in stackoverflow responses.  THANK YOU Stackoverflow!

https://stackoverflow.com/questions/66700942/googleapi-error-403-required-compute-organizations-enab...

In an idealer world I suggest the following Use Cases:

  • UC1
    • from a Project, open IAM Grant Access and "Assign Role" Filter
    • start typing something like "Compute Shared VPC Admin"
    • Filter results include "Compute Shared VPC Admin" in RED with hover text indicating "Only assignable to an Organization or Folder"
  • UC2
    • enter a Filter like "compute/xpnAdmin"
    • Filter results include Roles that include compute/xpnAdmin
    • Again, RED (or similar) if the role exists but is not usable in the current context

Hello

For assigning the correct IAM role for Host VPC Administrators, use the roles/compute.xpnAdmin role, as it provides necessary permissions for managing Shared VPC configurations. If you can't find this role via the IAM Grant Access form, verify your project settings or manually assign the Compute Shared VPC Admin role. These roles are crucial for managing and configuring Shared VPC in Google Cloud.

Thanks Smit. That's certainly the standard answer that I've seen in many other places. Could you please explain what you mean by "verify your project settings" when the Compute Shared VPC Admin role fails to appear in the IAM Grant form? I'm the Project Owner and IAM Admin. What other permissions do I need to have in order for the Compute... role to appear in the form.

OR could  you send a screenshot of the role appearing in the IAM Grant form associated with a Project?

And FWIW I marked ORG/Folder but not Project as a solution because the Compute... role appeared immediately when using IAM Grant for my Folders and Organization but has never appeared for a Project.