Subscribe to the Non-Human & AI Identity Journal

Security Group

A directory-based control used to limit which identities can access a tenant, environment, or resource set. It only provides real security value when the downstream application actually enforces the restriction for the relevant actor type, including non-human identities.

Expanded Definition

A security group is a directory-based access control construct that bundles identities for authorization decisions across a tenant, environment, or resource set. In NHI programs, its value is often less about the group object itself and more about whether downstream systems actually evaluate group membership for the actor type in question, including service accounts, workload identities, and API-driven agents.

Definitions vary across vendors and directory platforms, but the core pattern is consistent: the group simplifies entitlement administration while delegating enforcement to the application, cloud service, or policy engine. That separation matters because a group can look authoritative in the directory while providing no effective protection if the target system ignores it for tokens, machine principals, or federated identities. NIST Cybersecurity Framework 2.0 frames this through access governance and least-privilege expectations, while NHI-specific guidance in the Ultimate Guide to NHIs emphasizes that group membership must be continuously reviewed alongside credential lifecycle and privilege scope.

The most common misapplication is treating directory membership as proof of enforcement, which occurs when administrators assume a workload or API client is restricted even though the consuming application never validates the group claim.

Examples and Use Cases

Implementing security groups rigorously often introduces administrative overhead, requiring organisations to weigh simpler access management against the risk of stale or misapplied entitlements.

  • A cloud subscription group is used to grant read-only access to a set of automation service accounts, but only after the resource provider confirms it evaluates the group claim for non-human principals.
  • A deployment pipeline adds a build agent to a release group so it can deploy to staging, while the organisation separately verifies that the CI/CD tool does not inherit production permissions by default.
  • A support team uses a security group to segment access to a ticketing API, and the application enforces the group at request time rather than relying on directory membership alone.
  • An enterprise aligns group-based access reviews with its NHI inventory so dormant service accounts are removed before they retain privileges indefinitely, a concern highlighted in the State of Non-Human Identity Security.
  • Security architects pair groups with Zero Trust policy checks and monitor whether the target platform accepts group context from federated identity tokens as described in the NIST Cybersecurity Framework 2.0.

In practice, the strongest use cases are those where group membership is only one input to authorization, not the entire decision.

Why It Matters in NHI Security

Security groups become operationally significant when they are used to scale authorization for non-human identities that outnumber human users by 25x to 50x in modern enterprises, according to Ultimate Guide to NHIs. That scale is useful, but it also magnifies mistakes. If a group is over-broad, stale, or not actually enforced, dozens or thousands of service accounts can inherit access that no one intended to keep. This is especially dangerous where directory group membership is used as a proxy for trust without validating token contents, application-side authorization, or privilege scope.

NHIMG research also shows that 97% of NHIs carry excessive privileges, which makes group hygiene directly relevant to attack surface reduction and blast-radius control. The same report notes that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, reinforcing that group-based controls must be paired with rotation, logging, and offboarding. When organisations rely on groups without verifying enforcement, the failure is often discovered only after a compromise, and at that point the access model itself becomes part of the incident response problem. Organisations typically encounter unauthorized access only after a workload or API key has already been abused, at which point security group review 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.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-04 Group-based authorization can hide excessive NHI privileges and unenforced access paths.
NIST CSF 2.0 PR.AC-4 Least-privilege access governance depends on accurate group membership and enforcement.
NIST Zero Trust (SP 800-207) AC-4 Zero Trust requires dynamic authorization beyond directory membership alone.

Map NHI group access to PR.AC-4 and review whether downstream systems actually enforce the restriction.