Join our Newsletter — 33% off our NHI Course

What is the difference between IAM controls and MCP-layer governance for AI access to BigQuery?

IAM decides whether the connecting identity can reach datasets, tables, and jobs. MCP-layer governance decides what the agent may do with that access, which queries are allowed, and whether sensitive output must be redacted, masked, blocked, or approved. Both matter, but they solve different problems. IAM is coarse access control, while MCP governance is query-time protection and evidence collection.

Why This Matters for Security Teams

BigQuery access for AI is often assumed to be “solved” once an identity can authenticate and read the right project or dataset. That assumption misses the real risk: an agent with valid access can still issue unsafe queries, over-broaden result sets, combine sensitive tables, or exfiltrate data through downstream tool calls. IAM answers “can this identity connect?” while MCP-layer governance answers “what may the agent do right now?”

This distinction matters because AI systems do not behave like static human users. Their query plans can change with prompt context, task completion, and tool chaining. Current guidance suggests treating the model or agent as an active workload that needs runtime controls, not just pre-provisioned entitlements. NIST’s Cybersecurity Framework 2.0 is useful for framing governance outcomes, but it does not replace query-level guardrails. For NHI-specific control patterns, NHIMG’s Top 10 NHI Issues and Ultimate Guide to NHIs — Key Challenges and Risks both reinforce that credential possession is not the same as safe use.

In practice, many security teams discover the gap only after an agent has already queried too broadly, joined datasets unexpectedly, or copied sensitive output into another workflow.

How It Works in Practice

IAM controls sit at the infrastructure boundary. They determine whether the AI workload, service account, or delegated identity can reach BigQuery at all, and they should still enforce least privilege, strong service account hygiene, and short-lived credentials. MCP-layer governance sits one layer higher and inspects intent and context at request time. That is where teams decide whether a specific query is allowed, whether the result set is too broad, and whether rows, columns, or returned text must be masked, redacted, blocked, or escalated for approval.

A practical setup usually combines both layers:

  • Use IAM to constrain the agent to only the minimum projects, datasets, and job capabilities it needs.
  • Use MCP policy to inspect the actual query, the user or task context, and the destination of the output.
  • Apply data classification rules so sensitive tables trigger masking or denial before results leave BigQuery.
  • Log the prompt, query decision, policy outcome, and output handling for audit and incident review.

For agentic systems, the right mental model is closer to runtime authorization than classic RBAC. The OWASP Agentic AI Top 10 highlights the risk of tool abuse and unintended action chaining, while NHIMG’s OWASP Agentic Applications Top 10 coverage shows why pre-approved access alone is insufficient when the agent can compose multiple steps. The best operating pattern is policy-as-code with request-time evaluation, not static allowlists frozen at deployment.

These controls tend to break down when the agent can export query results into uncoupled tools, because the governance boundary stops at BigQuery while the sensitive data keeps moving.

Common Variations and Edge Cases

Tighter MCP-layer controls often increase operational overhead, requiring organisations to balance faster AI workflows against policy complexity and review burden. That tradeoff becomes sharper in analytics environments where legitimate users already run broad exploratory queries and the agent is expected to do the same.

There is no universal standard for this yet. Some teams enforce strict query templates and deny anything outside approved patterns. Others allow broader access but require real-time classification and post-query redaction. Both can work, but the right choice depends on whether the primary risk is unauthorized access, excessive data exposure, or uncontrolled output reuse. In practice, the safest design is often a narrow IAM blast radius paired with context-aware MCP governance that evaluates every request.

Edge cases matter. If the agent operates across federated warehouses, copied extracts, or cached embeddings, the BigQuery control plane may no longer be the only place that matters. The same is true when a developer grants temporary debugging access that later becomes a standing privilege. NHIMG’s 52 NHI Breaches Analysis and Ultimate Guide to NHIs — Regulatory and Audit Perspectives show why evidence collection, not just prevention, is part of the control objective. The NIST SP 800-53 Rev. 5 control family remains useful for auditability and access management, but MCP governance adds the missing runtime decision layer.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 AI access to BigQuery depends on securing non-human identities and their credentials.
OWASP Agentic AI Top 10 A-07 Agent tool use can trigger unsafe queries and chained actions against data systems.
CSA MAESTRO MAESTRO-03 MAESTRO addresses governance for autonomous agent behavior and tool invocation.
NIST AI RMF AI RMF frames governance, measurement, and monitoring for AI-driven access decisions.
NIST CSF 2.0 PR.AC-4 Access permissions must be limited, but IAM alone does not control agent query behavior.

Map every agent workload to a unique NHI and minimize standing access before any BigQuery connection is allowed.