Join our Newsletter — 33% off our NHI Course
Home Glossary Architecture & Implementation Relationship Cardinality
Architecture & Implementation

Relationship Cardinality

← Back to Glossary
By NHI Mgmt Group Updated September 1, 2026 Domain: Architecture & Implementation

Relationship cardinality is the number of related objects attached to another object in an authorization graph. Higher cardinality usually increases computation because the engine must evaluate more paths and intermediate objects before it can answer a request. It is a key driver of load test realism and performance cost.

Expanded Definition

Relationship cardinality is the number of related objects attached to a given object in an authorization graph. In NHI systems, that graph often connects workloads, service accounts, secrets, policies, entitlements, environments, and downstream resources, so cardinality directly shapes how much the engine must evaluate before it can return an answer. Higher cardinality usually means more candidate paths, more intermediate checks, and a larger performance footprint during authorization decisions. In practice, the term is most useful when discussing graph-based access models, policy evaluation cost, and load test realism.

Definitions vary across vendors because some teams count only direct edges, while others include transitive relationships, inherited memberships, or policy-derived links. That difference matters when comparing benchmarks or capacity plans. For governance, the important question is not just how many objects exist, but how many can influence a single authorization decision. The NIST Cybersecurity Framework 2.0 is useful as a broader reference point for managing system risk, even though it does not define relationship cardinality as a standalone control concept.

The most common misapplication is treating a low object count as low graph complexity, which occurs when transitive relationships and inherited access are omitted from evaluation.

Examples and Use Cases

Implementing relationship cardinality rigorously often introduces modeling and performance overhead, requiring organisations to weigh graph accuracy against query cost and operational simplicity.

  • A service account linked to dozens of cloud roles creates high cardinality because one identity can trigger many entitlement checks during authorization.
  • A secret referenced by multiple pipelines, environments, and runtime agents increases the number of objects that must be evaluated when access is requested.
  • A policy graph that includes nested groups, inherited permissions, and resource hierarchies can dramatically expand the paths an engine must traverse.
  • Load testing an authorization service should reflect real graph density, not just raw request volume, because sparse test data can hide latency spikes.
  • In an NHI review, a single API key used across multiple applications may reveal unexpected coupling that raises both blast radius and evaluation cost.

For a broader NHI context on why graph sprawl becomes hard to see at scale, see the Ultimate Guide to NHIs. That guide also explains why hidden access paths and over-privileged identities are such persistent governance problems.

Why It Matters in NHI Security

Relationship cardinality matters because authorization graphs are only as trustworthy as the relationships they encode. When cardinality rises without controls, policy evaluation can become slower, less predictable, and harder to validate under stress. That creates a governance problem as well as a performance problem: overloaded graphs encourage shortcuts, stale edges, and incomplete testing. In NHI environments, those failures often collide with over-privileged service accounts and long-lived credentials, making the blast radius larger than teams expect.

This is especially relevant in organizations that already struggle with visibility. NHIMG reports that only 5.7% of organisations have full visibility into their service accounts, and 97% of NHIs carry excessive privileges, which means graph size is often paired with poor inventory quality and weak entitlement hygiene. The result is not just slower authorization, but weaker confidence that the engine is evaluating the right relationships at all. The Ultimate Guide to NHIs highlights how those conditions compound across the NHI lifecycle. Organisaties typically encounter the cost of cardinality only after an outage, an access review failure, or a breach investigation, at which point the graph becomes operationally unavoidable to address.

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-01Graph complexity and entitlement sprawl affect NHI authorization risk.
NIST CSF 2.0DE.CM-8Monitoring must account for performance and behavior changes in identity systems.
NIST Zero Trust (SP 800-207)AC-3Zero Trust decisions depend on evaluating every relevant relationship before granting access.

Model NHI relationships tightly and reduce unnecessary graph edges to keep authorization decisions auditable.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

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