By NHI Mgmt Group Editorial TeamPublished 2025-12-01Domain: Best PracticesSource: WorkOS

TL;DR: As SaaS products add nested resources, custom roles, enterprise IdP mapping, and scoped AI workflows, traditional RBAC and schema-driven FGA models break down, according to WorkOS. The real issue is not authorization logic alone but an access model that assumes product structure stays stable long enough to fit a fixed schema.


At a glance

What this is: WorkOS argues that SaaS authorization outgrows flat RBAC quickly and needs a hierarchical, resource-scoped model to keep pace with product growth.

Why it matters: IAM and security teams need to see this as an identity governance problem, because the same structural drift that breaks RBAC in SaaS also shows up in NHI, autonomous, and human access models.

By the numbers:

👉 Read WorkOS's article on hierarchical authorization for SaaS products


Context

Authorization breaks when the product keeps changing faster than the model can absorb it. In SaaS, that usually starts with a simple role structure and ends with role sprawl, resource hierarchies, and exception handling that no longer fits the original design. For identity teams, the important question is not whether RBAC works on day one, but how quickly it stops matching the business reality behind the access model.

That same pattern matters across IAM, NHI, and autonomous systems because identity governance always fails when the shape of access drifts away from the shape of the programme. A fixed model may look neat in policy, but once workspaces, nested resources, enterprise groups, and scoped automation enter the picture, governance has to follow structure, not assumptions.


Key questions

Q: How should security teams prevent role explosion as SaaS products grow?

A: They should design access around resource hierarchy, not around endlessly new role names. Start with stable scopes such as organization, workspace, project, and application, then let permissions inherit through those layers. The goal is to preserve a small number of understandable roles while keeping the model aligned to how the product actually expands.

Q: Why do fine-grained authorization models become hard to govern at scale?

A: They become hard to govern when the schema, resource graph, and application logic evolve at different speeds. If every new feature forces schema changes, migrations, or sync work, access governance turns into operational drag instead of a control. Strong governance keeps the model readable even as the product becomes more complex.

Q: What breaks when AI agents inherit a user's full access in SaaS applications?

A: The access boundary collapses, because the agent can act with more authority than the task requires. That creates over-scoped permissions, harder incident response, and unclear accountability when the agent performs actions the user never intended. Agent workflows need task-scoped authorization, not inherited human privilege.

Q: How do enterprises map IdP groups into resource-scoped access without losing control?

A: They should map directory groups and attributes to specific resource scopes, then keep inheritance rules explicit. That lets enterprise identity stay central while avoiding broad, manual grants that are hard to audit later. The key is to preserve predictable group-to-resource mapping without flattening the hierarchy.


Technical breakdown

Why flat RBAC breaks in hierarchical SaaS

Flat role-based access control works when permissions map cleanly to a small number of user roles. It breaks when the application becomes hierarchical, because a single user can need different access across workspaces, projects, apps, and nested business units. At that point, every new exception becomes another role variant, and the access model stops reflecting the product. The technical failure is not just complexity. It is the mismatch between a flat entitlement structure and a nested resource graph that keeps evolving with each release.

Practical implication: model resource scope early or role explosion will turn every product change into an access redesign.

High-cardinality resources and authorization drift

High-cardinality architectures create a different failure mode. When millions of rapidly changing resources are pushed into an external authorization system, sync latency, drift, and stale edges become operational risks in the hot path. A resource can be created, updated, or deleted faster than the authorization layer can safely reconcile it. That is why local registration of stable parents with application-side handling for volatile children matters. The core architectural lesson is that not every object should be treated as a remote authorization dependency.

Practical implication: keep volatile resource state close to the application and reserve centralized logic for stable hierarchy layers.

Resource-scoped authorization for enterprise and AI workflows

Resource-scoped authorization lets identity structures stay aligned with the application as it grows. Enterprise group mapping, attribute-based assignment, and scoped agent actions all depend on the same idea: access should follow resource context, not just user identity. For AI workflows, the key constraint is that an agent must not inherit a human user's full access. Authorization checks need to be deterministic even when the surrounding system is probabilistic, and that requires scoped decisions at the resource level rather than broad session-wide trust.

Practical implication: treat resource scope as the control boundary for both enterprise provisioning and AI-driven actions.


Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Authorization sprawl is the governance failure hidden inside product growth. When products move from flat permissions to nested workspaces, projects, and application layers, the access model often lags behind the real structure of the business. That creates the same kind of governance debt we see in NHI programmes: the control looks intact, but it no longer matches how identities actually operate. Practitioners should treat authorization drift as a lifecycle problem, not a one-time design decision.

Resource hierarchy is now the real control plane for SaaS access. The article shows that access decisions are no longer limited to who the user is, but also where the resource sits in the product tree and how inheritance should flow. That matters because RBAC flattens context while modern SaaS depends on context to stay safe. Identity teams should align governance to resource scope, inheritance, and exception handling as a single discipline.

Scope-based access for AI workflows is an identity boundary, not just an application feature. The moment AI agents can perform scoped actions, the access model has to stop assuming that human identity and machine action share the same trust envelope. That is where enterprise IAM, NHI governance, and emerging agentic controls meet. Practitioners should evaluate whether their authorization model can express task-limited authority without granting the agent a human-sized entitlement set.

Hierarchical authorization reduces role explosion only when the model remains legible to the business. Fine-grained access fails as a governance programme if product teams cannot understand or maintain it. The strongest models are the ones that let enterprise identity, nested resources, and operational oversight evolve together without forcing rewrites. Practitioners should prefer models that preserve both administrative clarity and product agility.

From our research:

  • 97% of NHIs carry excessive privileges, increasing unauthorised access and broadening the attack surface, according to Ultimate Guide to NHIs.
  • 79% of organisations have experienced secrets leaks, with 77% of these incidents resulting in tangible damage.
  • Top 10 NHI Issues shows that governance gaps usually surface first as privilege sprawl, not as isolated incidents.

What this signals

Identity blast radius: once product teams start adding nested resources and scoped automation, the real risk is not access complexity alone but the size of the failure domain when a role or group mapping is wrong. That is why governance models need to track resource scope, inheritance, and exception density together, not as separate workstreams.

With 97% of NHIs carrying excessive privileges, according to the Ultimate Guide to NHIs, the lesson for SaaS teams is familiar: access models fail when they are built for initial launch rather than long-term structure. Teams should expect the same pattern in human IAM and agent workflows if hierarchy is ignored.

As automation and AI-driven actions move deeper into product workflows, authorization will need to behave more like a policy boundary than a static role list. Teams that can express resource-scoped authority cleanly will be better positioned to govern enterprise identity, workload access, and scoped agent actions without constant rework.


For practitioners

  • Map authorization to resource hierarchy early Define the product's stable resource layers before the role list grows. Use workspace, project, application, and similar scopes as the basis for access design so that new features extend the model instead of forcing a rewrite.
  • Limit role variants before they multiply Review every new access exception and ask whether it creates a new role or should inherit from an existing scoped role. Track role growth as a governance metric, not just an engineering convenience.
  • Keep high-cardinality resources local Avoid syncing every volatile object into a remote authorization layer. Register stable parent resources centrally and let the application maintain rapidly changing child state to reduce drift and latency.
  • Separate human authority from agent scope If AI workflows are performing actions inside the product, give them task-bounded access that is narrower than the user's full entitlements and review whether the authorization model can enforce that boundary consistently.

Key takeaways

  • Flat RBAC fails when SaaS products become hierarchical, because access no longer maps cleanly to a small set of broad roles.
  • Authorization drift is a governance problem as much as a technical one, especially when high-cardinality resources and enterprise groups change faster than the access model.
  • Scoped resource models give IAM teams a way to manage enterprise access and AI workflows without granting human-sized privileges to everything that automates.

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 Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Scoped access and privilege growth map to non-human privilege control.
NIST CSF 2.0PR.AC-4Access permissions must stay aligned as product structure changes.
NIST Zero Trust (SP 800-207)AC-4Fine-grained decisions and least-privilege boundaries are core to the topic.

Tie authorization reviews to product hierarchy changes and remove obsolete role variants.


Key terms

  • Resource-Scoped Authorization: Resource-scoped authorization assigns access based on the specific object being accessed, not just on a broad user role. It is useful when applications have nested structures such as organizations, workspaces, projects, or apps. The model keeps access aligned to the product as it evolves.
  • Role Explosion: Role explosion happens when teams keep creating new role variants to cover every special case in a growing product. Instead of preserving clarity, the role list becomes the problem. It usually signals that the authorization model is too flat for the application's real hierarchy.
  • High-Cardinality Resource: A high-cardinality resource is a large, fast-changing set of objects that can be created, updated, and deleted frequently. In authorization design, these resources are risky to synchronize externally because drift and latency can appear at the worst possible moment. Keeping them local can preserve speed and consistency.
  • Authorization Graph: An authorization graph is the network of identities, resources, roles, and inheritance rules that determine access decisions. In practice, it must stay consistent with the application's structure or it becomes a source of drift, exceptions, and maintenance overhead.

Deepen your knowledge

Authorization model design and resource-scoped governance are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If your programme is running into role explosion, hierarchy drift, or scoped automation, it is worth exploring.

This post draws on content published by WorkOS: FGA and how WorkOS is rethinking authorization for the next generation of SaaS. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2025-12-01.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org