Subscribe to the Non-Human & AI Identity Journal

When do derived roles make more sense than expanding base roles?

Derived roles make sense when access depends on conditions such as ownership, blocked status, or resource state. They prevent broad permissions from being baked into a base role and let teams express contextual access rules without making every member or moderator over-privileged.

Why This Matters for Security Teams

derived role are the right choice when access is conditional, not inherent. If a moderator can only act on content they own, or a service account can only write to a resource in a specific state, expanding the base role usually turns a narrow privilege model into standing access. That is how teams drift into privilege sprawl, then spend quarters cleaning up exceptions after the fact.

This matters because role design becomes an attack surface. Base roles are easy to understand but hard to safely broaden when business rules depend on ownership, status, tenant boundaries, or approval state. Current guidance in the NIST Cybersecurity Framework 2.0 still points teams toward least privilege and continuous access management, which is exactly where derived roles help: they let policy follow context instead of permanently inflating the role itself. NHIMG’s Ultimate Guide to NHIs notes that 97% of NHIs carry excessive privileges, a pattern that often starts with convenient role expansion and never gets rolled back.

In practice, many security teams discover role overreach only after a blocked account, stale entitlement, or misrouted automation has already created a security incident, rather than through intentional role engineering.

How It Works in Practice

Derived roles work by binding a base capability to a condition that is evaluated at request time. The base role defines the generic permission, while the derived role adds a rule such as “only if the user owns the record,” “only if the resource is in pending status,” or “only if the service account is operating inside this tenant.” That keeps the base role stable and shifts the variability into policy.

In mature implementations, derived roles are enforced through policy logic rather than manual review. Teams typically express the condition in an authorisation layer, then combine it with identity context, resource attributes, and sometimes session context. This aligns with the least privilege model in Ultimate Guide to NHIs, especially where NHIs, API keys, and service accounts need narrow permissions without duplicating role definitions for every edge case.

  • Use a base role for the stable capability set, then add derived logic for ownership, state, or scope.
  • Prefer runtime evaluation over cloning roles for every business exception.
  • Keep derived rules readable so auditors can see why access was allowed or denied.
  • Separate human approval workflows from machine-enforced entitlement rules.

For teams formalising the control layer, the NIST Cybersecurity Framework 2.0 reinforces governance, access control, and continuous review as operational disciplines. Derived roles fit best where policy engines can evaluate attributes consistently and where the organisation can prove which conditions were active at decision time. These controls tend to break down when the application cannot reliably expose ownership or resource-state signals because the derived rule has nothing trustworthy to evaluate.

Common Variations and Edge Cases

Tighter role design often increases policy complexity, requiring organisations to balance cleaner entitlements against the overhead of maintaining more conditional logic.

Derived roles are not always the answer. If the condition is truly universal, it belongs in the base role. If the rule is highly volatile or differs by workflow step, a separate entitlement model may be clearer than piling conditions onto one role. Guidance is still evolving for highly dynamic systems, but current best practice is to avoid encoding business exceptions as permanent base access whenever the condition can be evaluated safely at runtime.

They are especially useful for delegated administration, moderation workflows, and NHI-driven automation where access should track resource state or ownership. They are less effective when the identity platform cannot express attribute-based conditions cleanly, or when application teams cannot agree on a single source of truth for state. In those environments, role sprawl returns quickly because teams create a new base role for every exception instead of deriving access from one stable entitlement model.

For broader NHI governance context, NHIMG’s Ultimate Guide to NHIs is useful for translating privilege minimisation into operational controls. The practical test is simple: if the access rule changes with the object, not the identity, derive it rather than expand it. If the organisation cannot explain the condition in one sentence, the derived role is probably too complex and should be redesigned.

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.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.AC-4 Derived roles support least privilege and conditional access decisions.
OWASP Non-Human Identity Top 10 NHI-04 Covers excessive privilege patterns common in non-human identities.
NIST AI RMF AI RMF governance supports context-aware access decisions and accountability.

Use conditional entitlements to keep access aligned to context, not permanent role expansion.