By NHI Mgmt Group Editorial TeamBased on WorkOS: “The Feature You'll Rebuild Three Times: Authorization at Scale: Pavan Kulkarni at ERC” (October 31, 2025)

TL;DR: Authorization is the feature B2B SaaS teams rebuild repeatedly as customers move from simple permission checks to nested resources, custom roles, policy engines, and agent access, according to WorkOS's ERC 2025 recap. The governance problem is no longer just access design but keeping authorization aligned with enterprise hierarchy, identity provider automation, and AI-driven requests without breaking least privilege.


At a glance

What this is: This article explains why enterprise authorization is rebuilt in stages as products scale from simple role checks to nested resources, policy engines, and agent access.

Why it matters: It matters because IAM and product teams have to design authorization that can evolve with enterprise hierarchy, identity-provider automation, and emerging AI-mediated access without weakening least privilege.


Context

Authorization is the control plane that decides what an authenticated user, group, or agent can actually do inside an application. The problem grows when a product must represent enterprise hierarchy, multiple role layers, and policy conditions without turning every access decision into bespoke code.

This article focuses on the governance gap that appears when access logic becomes part of the product architecture rather than a separate IAM concern. For identity teams, that means authorization, lifecycle, and federated access patterns all have to stay aligned as customers move from simple permission checks to enterprise-scale access graphs.

The article's examples are rooted in SaaS growth, but the underlying issue is broader: once access must reflect nested resources, custom roles, and IDP-driven automation, authorization stops being a static feature and becomes a continuously evolving control system.


Key questions

Q: How should security teams govern authorization when applications add nested resources?

A: Security teams should model authorization around resource boundaries, inheritance rules, and override paths instead of assuming flat RBAC will hold. Once users can belong to multiple groups or access multiple workspaces, the control problem becomes relational. The key test is whether the application can explain why a user has access in one context and not another.

Q: Why do custom roles often create more access risk over time?

A: Custom roles solve immediate business fit, but they also create inheritance chains that must stay aligned as features evolve. When new actions are added or permissions change, stale role definitions can leave users overentitled or block legitimate work. Teams need a governance model that treats role inheritance as part of change management, not a one-time setup task.

Q: How do access reviews change when AI agents use enterprise-managed authorization?

A: Access reviews must cover the agent, the policy that issued the token, and the downstream systems the token can reach. Reviewing only the app entitlement misses the control plane decision that created it. For managed AI access, certification has to include runtime scope, ownership, and revocation coverage.

Q: What should teams do when identity-provider automation and app authorization do not line up?

A: Check where the application assumes a fixed role structure while the identity provider is using groups, attributes, or sync rules to drive access. Misalignment creates manual work, lockout risk, and inconsistent entitlements across customers. The practical response is to make the application accept the enterprise's identity model rather than forcing every customer into one path.


Technical breakdown

Why enterprise authorization becomes a graph

At small scale, authorization looks like a straightforward permission check: can this user read, edit, or delete this resource? Enterprise apps outgrow that model quickly because access must reflect organisation, group, workspace, project, and policy context at the same time. That turns the model into a graph, where entitlement depends on relationships as much as on roles. Resource-scoped RBAC and ReBAC exist because flat roles cannot express inheritance, nested boundaries, or conflicting sources of privilege without becoming brittle.

Practical implication: Treat authorization as a graph problem early, before product teams have to retrofit hierarchy into hard-coded permission checks.

How nested resources change the access model

Nested resources introduce a three-dimensional access structure. A person may be an organisation admin, a workspace collaborator, and only a project member, with different rights at each layer. That is why simple global roles stop working and why permission inheritance, conflict resolution, and scope-specific checks become necessary. Once the resource tree grows, a change in one part of the hierarchy can alter access semantics elsewhere, which is why implementations often drift toward policy engines and synchronised entitlement logic.

Practical implication: Design resource-scoped authorisation boundaries so inheritance and overrides remain explicit instead of accidental.

Why agent access is not just another user role

The article also shows why AI agents create a distinct authorisation problem. An agent acting on behalf of a user should not inherit the user's full permission graph, because its actions occur at machine speed and may span multiple tools or requests. That means access has to be scoped and just in time, with explicit limits on token minting, permission escalation, and credential changes. The governance issue is not only access level, but who or what is allowed to expand that access during execution.

Practical implication: Separate agent privileges from user privileges and constrain any delegated access to the minimum scope needed for the task.


Threat narrative

Attacker objective: The objective is to gain more access than the intended authorization model allows, especially across inherited or delegated application scopes.

  1. Entry occurs when a user, group, or AI agent is granted application access through a login, federated identity, or delegated action path.
  2. Privilege broadening happens as roles, groups, nested resources, and policy exceptions accumulate beyond the original access intent.
  3. Impact appears when the application can no longer guarantee that the right actor has the right access at the right scope, which undermines enterprise trust and least privilege.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 150+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Authorization drift is the hidden scaling tax in enterprise software: once access rules move from a single permission check to hierarchy-aware graphs, every new product feature changes the governance model. That makes authorization one of the few product controls that must evolve with the customer's organisation, not after it. The practical conclusion is that identity teams should treat authorization architecture as a lifecycle problem, not a one-time implementation.

Custom roles create governance debt unless inheritance is designed upfront: letting customers hand-pick permissions solves immediate fit gaps, but it also creates dependency chains that must be maintained as features change. When leaf-role updates do not propagate cleanly, entitlement drift becomes inevitable. The implication is that role design must assume future feature growth, not just current product structure.

Identity-provider automation is still the operational choke point: the article's discussion of SSO and directory sync shows that organisations want access management to originate from their identity systems, but implementations still vary widely. That inconsistency makes access orchestration brittle across customers, especially when admin lockout or credential compromise forces manual intervention. Practitioners should see IDP automation as a governance dependency, not a convenience layer.

AI agents expose the assumption that delegated access behaves like human access: access review, role inheritance, and escalation controls were designed for actors whose privileges persist long enough to be reviewed and whose intent is stable enough to be modelled in advance. That assumption fails when an agent requests, uses, and discards privileges at machine speed within a task. The implication is that authorisation models must distinguish delegated human intent from autonomous runtime execution.

What this signals

Authorization now behaves like infrastructure, not a feature toggle: once access policy is embedded across roles, groups, nested resources, and policy conditions, small product changes can alter the security model everywhere. IAM and product teams should expect authorization to be revised repeatedly as the application adopts more enterprise structure.

AI-driven access requests compress the review window: when an agent can request and use privileges within a single task, the old assumption that access will persist long enough to be reviewed no longer holds. That pushes governance upstream to issuance and delegation rather than downstream to periodic certification.

Enterprise customers are effectively asking for identity alignment at the product layer: if the application cannot represent their organisational hierarchy and federation workflows, adoption will stall or controls will be implemented outside the product. The result is a governance gap that usually shows up later as brittle exceptions, manual provisioning, and entitlement sprawl.


For practitioners

  • Define authorization as a product architecture concern Map every user-visible action to the underlying resource, role, and relationship model before adding enterprise customers or nested objects. This prevents flat permissions from hardening into unmaintainable logic.
  • Model nested resources explicitly Document organisation, workspace, project, and object-level scopes as separate authorization boundaries, with inheritance rules and override behavior written down. Without explicit boundaries, access semantics will drift as the product grows.
  • Separate delegated agent access from human access Scope any agent or automation token to the minimum task-specific permissions and prevent the agent from minting tokens, changing credentials, or expanding roles during execution.
  • Test IDP automation failure paths Simulate directory sync gaps, group changes, and admin lockout scenarios so the team can see where identity-provider-driven access management breaks before customers do.
  • Review authorization inheritance for privilege creep Check whether custom roles, group membership, and policy exceptions still converge on the intended access boundary when features are added or reorganised.

Key takeaways

  • Authorization complexity grows because enterprise applications must represent hierarchy, inheritance, and context, not just simple permissions.
  • The article shows that custom roles, nested resources, and IDP automation each add a new layer of governance and maintenance burden.
  • For practitioners, the practical answer is to treat authorization as a living control system and align it with enterprise identity patterns early.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe article's AI agent access section centers on delegated privilege and scope control.
Recommendation — Constrain agent privileges so delegated access cannot expand beyond the task scope.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe whole article is about enterprise authorization and entitlement design.
Recommendation — Map application permissions and entitlements to PR.AA-05 and review inheritance paths for drift.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeLeast privilege is the governing principle behind scoped roles, nested access, and agent delegation.
Recommendation — Apply AC-6 to prevent any role, group, or agent from carrying broader rights than needed.
MITRE ATT&CKTA0004;TA0006 — Privilege Escalation; Credential AccessThe article warns that broad roles and agent permissions can enable unauthorized escalation paths.
Recommendation — Track entitlement growth against privilege escalation and credential access patterns in detection content.

Key terms

  • 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.
  • Per-Resource RBAC: Per-resource RBAC is a control model that applies authorization at the level of an individual resource rather than granting broad cluster-wide permissions. It lets administrators scope access more precisely across Kubernetes objects, including custom resources and verbs, reducing unnecessary privilege while improving fit for complex operational environments.
  • ReBAC: Relationship-based access control grants access by evaluating paths through relationships between subjects, resources, and intermediary objects. It is useful when permissions depend on how things are connected rather than on simple roles alone, but its runtime cost depends heavily on graph shape and traversal strategy.
  • Delegated agent access: A pattern where an AI agent performs actions on behalf of a human user and should therefore inherit that user's permissions. The governance challenge is preventing the agent from becoming a privilege amplifier or bypassing user-scoped controls.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 7, 2026.
Updated on October 7, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org