Google Cloud identity and organization policy
Principals, roles and hierarchy
Google Cloud IAM governs permissions for principals such as users and service accounts. A service account represents a workload and is also a resource that can be governed by IAM. Organization, folder, project and resource form a hierarchy; allow bindings can be inherited. Use a separate service account for the fictional report worker instead of sharing an administrator identity across workloads.
Different policy questions
An IAM allow policy grants roles; an applicable deny policy can block supported permissions even if a grant exists. A principal access boundary (PAB) can limit resource eligibility for applicable permissions but does not grant access. Organization Policy constrains supported resource configurations and operations; it is not an IAM role grant. Review effective constraints, inheritance and exceptions for the specific resource. The lab covers resolved flags only, not the complete Google policy evaluator or preview policy types.
Separate keys and network paths
Use attached service account identities or supported federation instead of long-lived downloaded keys where possible. Organization policies can restrict service account key creation. This does not automatically remove existing keys; inventory and retire them safely. Google Cloud VPC firewall rules are stateful, while VPC Service Controls provides service perimeters for supported services. These controls are distinct from IAM authorization and from one another.
Two independent decisions
A fictional project allows report reading and has no applicable deny; its resource is eligible. The IAM review passes. A proposed new service account key is blocked by an effective organization constraint, even though its requester has an IAM grant for creation. Record IAM decision and configuration guardrail separately. If a necessary export is absent, mark review. These examples do not predict every real API result.
Practice: review a mock policy
Use google.json. Decide IAM access first and then classify the independent configuration gate for the proposed operation. Explain why an organization constraint is not a role and why an IAM pass is not approval to deploy. Record the resource owner and the evidence required to resolve null fields.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Google Cloud identity and organization policy — knowledge check
Evaluate Azure and Google Cloud access, evidence and federation decisions.
What does a service account represent?
What can override an applicable allow grant for a supported permission?
What does a PAB policy restrict?
What does Organization Policy constrain?
IAM permits key creation, but an effective constraint blocks it. What is the decision?