Using Console
Using CLI
username@<project-id>.iam.gserviceaccount.com
.
root-access
tag to the root user’s account:<instance-name>
with the name of the instance where the root user has access.root-access
tag from all other instances:Using Python
google-cloud-iam
library to list all the IAM policies for your GCP project.roles/owner
role to the user:root
member.roles/owner
role to the user:root
member:user:root
member from the policy that grants the roles/owner
role.user:root
member from the policy that grants the roles/owner
role:google-cloud-iam
library.