Agentic AI Module Added To NHI Training Course
Home FAQ Governance, Ownership & Risk How should security teams choose between basic, predefined,…
Governance, Ownership & Risk

How should security teams choose between basic, predefined, and custom GCP IAM roles?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated May 31, 2026 Domain: Governance, Ownership & Risk

Teams should start with predefined roles, because they usually provide the narrowest supported permission set for a service. Use custom roles only when predefined roles are too broad or do not fit the workload. Reserve basic roles for exceptions, then document and review those exceptions regularly so standing access does not expand unnoticed.

Why This Matters for Security Teams

Choosing between basic, predefined, and custom GCP IAM roles is really a decision about how much standing privilege the organisation is willing to tolerate. Predefined roles are usually the safest default because they are maintained by the service owner and tend to stay closer to the permissions a workload actually needs. Basic roles, by contrast, are broad by design and can silently expand blast radius if they are used as a shortcut. That is a familiar pattern in NHI programs, where over-privileged access and weak review discipline are common failure points, as highlighted in The State of Non-Human Identity Security.

Security teams should treat role choice as part of an identity governance workflow, not a one-time admin task. The question is not only whether a role works today, but whether it will still be defensible after a service changes, a pipeline grows, or an operator leaves and no one remembers why the exception existed. Current guidance from NIST Cybersecurity Framework 2.0 aligns with this: access should be intentional, reviewed, and tied to business need rather than convenience. In practice, many security teams encounter privilege drift only after an incident review, rather than through intentional role design.

How It Works in Practice

Start by mapping the workload to the narrowest predefined role that covers its verified functions. If the service needs only storage read access, for example, do not begin with a project-wide editor role and trim later. Use custom roles only when the predefined catalog is too coarse for the workload and the service can tolerate the extra governance overhead of maintaining a bespoke permission set. That overhead is real: every custom role becomes part of your change control, testing, and review process.

A practical selection pattern is to ask four questions before granting access: what exact API calls are required, whether the role is service-scoped or project-scoped, whether the workload needs write or only read permissions, and whether a temporary elevation would be safer than a permanent grant. If a request is time-bound or exceptional, JIT access is usually the better control than broadening the role permanently. That approach is consistent with zero standing privilege thinking and helps avoid the kind of hidden exposure discussed in Azure Key Vault privilege escalation exposure, where a role that looked narrowly scoped still created a path to broader control.

  • Prefer predefined roles for supported services unless they are demonstrably too broad.
  • Use custom roles when a workload needs a stable, well-documented subset of permissions.
  • Reserve basic roles for break-glass or migration scenarios with explicit approval.
  • Review standing access on a schedule and remove exceptions that no longer have a business case.

For implementation discipline, tie role selection to the organisation’s access review process and logging requirements, and validate that role grants are visible in your IAM inventory. The security goal is not just least privilege on paper, but a permission model that can survive operational change and audit scrutiny. These controls tend to break down in fast-moving platform teams that clone existing service accounts during deployment because the inherited role often goes unnoticed until production access sprawl has already accumulated.

Common Variations and Edge Cases

Tighter role design often increases administrative overhead, requiring organisations to balance least privilege against deployment speed and support burden. That tradeoff is most visible in shared platforms, multi-team clusters, and migration projects where services evolve faster than the IAM catalogue. Best practice is evolving here: there is no universal standard for when a custom role is justified, so teams should document the decision logic rather than rely on informal judgement.

Some environments also create edge cases that make basic or predefined roles look attractive even when they are risky. Short-lived migration windows, third-party-managed services, and legacy applications with unclear permission requirements can lead teams to choose broader access just to keep delivery moving. When that happens, the exception should be explicitly time-boxed and tracked as technical debt, not normalised. Where possible, pair the exception with compensating controls such as tighter logging, access review, and a removal date.

This is also where NHI governance and IAM hygiene intersect. A role that seems harmless can still become a privilege escalation path if it is attached to a long-lived secret, a reused service account, or an unattended automation workflow. That is why current guidance from NIST Cybersecurity Framework 2.0 and implementation lessons from the NHI research above both point in the same direction: keep access narrow, measurable, and reviewable, then only widen it when the operational case is clear. The exception becomes the problem when no one owns its expiry.

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 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Addresses over-privileged NHI access and credential sprawl from broad roles.
NIST CSF 2.0PR.AC-4Maps directly to managing access permissions and enforcing least privilege.
NIST AI RMFUseful for governance of automated access decisions and accountability.

Use the narrowest supported role and review every standing exception for removal or reduction.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on May 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org