GuideLast checked 16 October 2026 with AI-assisted research. Editor: Akshay Dubey.Corrections logEditorial policy
On this page
  1. The design principle
  2. 1. Scope and definitions
  3. 2. Creation and approval
  4. 3. Ownership
  5. 4. Credentials
  6. 5. Privilege
  7. 6. Review
  8. 7. Retirement
  9. 8. Exceptions
  10. 9. AI agents
  11. Using this
  12. FAQ
  13. Sources

A non-human identity policy is the governing document that sets rules for every service account, workload identity, cloud role and AI agent identity, and for the credentials they hold. An enforceable one has nine sections, puts numeric thresholds in the clauses, and makes every clause testable as a query against your systems.

TL;DR

  • Every clause must be testable. If a clause cannot be turned into a query against your systems, it is a statement of intent and will not survive an audit.
  • Nine sections. Do not skip exceptions and retirement: without them, deviations and leftover identities have nowhere to be recorded.
  • Put thresholds in the policy, not in a standard nobody reads. A policy that says "credentials shall be rotated regularly" is unenforceable.
  • Invert the default: expiry automatic, extension requiring justification. In our view this single choice does more than any other clause.

The design principle

A policy clause is worth writing only if you can answer two questions about it: what query proves compliance, and what happens when the answer is no. Clauses that fail either test are decoration, and an auditor will treat them as such.

The template below is deliberately terse. Adapt the numbers; keep the testability.

1. Scope and definitions

This policy applies to every non-human identity, meaning an identity assigned to software rather than a person, and to the credentials that prove it. Identities include service accounts, service principals, OAuth clients and grants, cloud IAM roles, Kubernetes service accounts, workload identities, certificate subjects, bot accounts and AI agent identities. Credentials include API keys, access keys, client secrets, tokens, certificates and SSH keys. The policy applies whether the identity is issued by this organisation or granted to a third party for access to our systems.

Why this wording: the enumeration prevents a scoping failure where "service accounts" is read narrowly and OAuth grants, CI/CD tokens and agent credentials fall outside. The final clause brings third-party grants in scope, which they otherwise are not.

2. Creation and approval

Non-human identities may be created only through an approved issuance path that records requester, purpose, owner, systems to be accessed, and expiry. Creation outside an approved path is a policy violation and the resulting identity will be revoked on discovery.

Testable by: comparing discovered identities against issuance-path records. The gap is your violation rate. Precondition: the approved path must be faster than the workaround, or this clause converts engineers into violators rather than users.

3. Ownership

Every non-human identity has a single named individual owner. Team names, distribution lists and role titles are not valid owners. On an owner's departure, ownership transfers before their access is removed; identities without a transferred owner are suspended within 30 days.

Testable by: joining the inventory to the HR leaver feed. Why individuals: a team cannot be accountable, and offboarding never triggers on a mailbox.

4. Credentials

Credentials must be attested from the runtime where the platform supports it. Where a static credential is unavoidable it must carry an expiry not exceeding 90 days for standard identities and 30 days for identities able to write to production. Credentials must not appear in source code, container images, configuration files, logs, or any context supplied to an AI model. Extension of a credential lifetime requires documented justification; expiry does not require approval.

Testable by: lifetime distribution query, plus secrets scanning across repositories, images and logs. The important sentence is the last one: inverting the default from "expiry needs approval" to "extension needs justification" does, in our view, more to change behaviour than any other clause in this document.

5. Privilege

Permissions are granted according to observed need. Permissions granted but not exercised within 90 days are removed unless a documented exception applies. No non-human identity holds standing administrative privilege.

Testable by: the granted-versus-exercised diff. Note the framing: "observed need" rather than "least privilege", because least privilege is unfalsifiable and an exercised-permissions diff is not.

6. Review

Non-human identities are reviewed on a cycle determined by reach: quarterly where the identity can write to production data or crosses a third-party boundary, annually otherwise. Reviews are conducted against exercised permissions rather than by attestation. A review is complete when resulting revocations have been executed, not when decisions have been recorded.

Testable by: review records with executed-change evidence. The last sentence is the one auditors care about: a review that decided to remove access and did not is a finding, not a control.

7. Retirement

An identity is retired when its registration reaches its end date without justified renewal (credential lifetimes are a separate, automated control), when it has not authenticated for 90 days, when its owner departs without transfer, or when the system it serves is decommissioned. Retirement includes revoking artefacts the identity created, including OAuth grants, webhooks and derived credentials.

Why the second sentence: deleting an identity while the grants it created continue working is one way retirement leaves a live remnant.

8. Exceptions

Any identity that cannot meet this policy requires a registered exception recording the clause, the reason, a named approver, a compensating control, and an expiry not exceeding 12 months. Exceptions expire; they do not renew automatically.

In our view, the most valuable section. Without it every deviation is a violation, which makes the policy unusable and drives deviations underground. With it, a documented deviation is a governance decision an auditor can accept.

9. AI agents

Every AI agent holds a registered non-human identity, and that identity is subject to all clauses above. In addition: an agent must not hold or use a human's credential; where an agent acts on behalf of a person, that authority is carried as a separate credential and both identities are recorded in logs; agents with the ability to take irreversible or externally visible actions require human approval for those actions; and every agent has a documented interruption procedure with a measured effect time.

Four clauses, each mapping to a specific failure. Credential borrowing destroys attribution permanently. Separate delegation is what makes chains reconstructable. Approval on irreversible actions is, in our interpretation, one way to operate the human oversight that Article 14 of the EU AI Act requires for high-risk AI systems (for Annex III systems, from 2 December 2027 under Regulation (EU) 2026/1744). Apart from the separate verification by at least two natural persons that Article 14(5) requires for certain remote biometric identification systems, the Article does not prescribe approval steps, and it does not mention agents. A measured interruption time is the only evidence the kill path exists.

Using this

  1. Adapt the numbers to your risk appetite, then hold them. A threshold you will not enforce is worse than a longer one you will.
  2. Check each clause against your systems before publishing. If a clause cannot be queried, either build the capability or remove the clause. Publishing an unenforceable policy creates findings without improving anything.
  3. Publish the exception register alongside the policy. Visible exceptions are how a policy stays credible under pressure.
  4. Map clauses to the frameworks you are held to. In our mapping, section 6 can support evidence for ISO/IEC 27001:2022 Annex A control 5.18 (access rights) and SOC 2 CC6.3, and section 9 can support evidence for ISO/IEC 42001 clauses 8 and 9. None of these names non-human identities, and a policy clause is not by itself evidence of conformity.

Frequently asked questions

What should a non-human identity policy contain?

Nine sections: scope with an explicit enumeration of credential types, creation and approval through a recorded issuance path, ownership by named individual, credential requirements including maximum lifetimes, privilege granted according to observed need, review on a cycle determined by reach, retirement triggers including derived artefacts, a registered exception process with expiry, and a section covering AI agents specifically. Every clause should be testable as a query against your systems.

Why should a policy require an individual owner rather than a team?

Because a team cannot be accountable and offboarding never triggers on a mailbox. When ownership is recorded as a team name, nobody acts on review requests, nobody is asked when the identity should be retired, and the leaver process has nothing to match against. Requiring a named individual with mandatory transfer on departure makes the inventory joinable to your HR feed, which is what turns ownership from a field into a control.

Why does an NHI policy need an exceptions section?

Without a registered exception process, every deviation is a violation, which makes the policy unusable in practice and drives deviations underground where nobody can see them. With one, recording the clause, reason, named approver, compensating control and an expiry, a documented deviation becomes a governance decision an auditor can accept rather than a finding.

What credential lifetime should an NHI policy set?

As a starting point, 90 days for standard identities and 30 days for identities able to write to production, with attested runtime credentials preferred wherever the platform supports them. The specific numbers matter less than the default: expiry should be automatic and extension should require documented justification. In our view, inverting that default does more to change behaviour than any other clause.

How should an NHI policy treat AI agents?

As non-human identities subject to every other clause, plus four additions: an agent must not hold or use a human's credential; where it acts for a person that authority is carried as a separate credential with both identities logged; agents able to take irreversible or externally visible actions require human approval for those actions; and every agent has a documented interruption procedure with a measured effect time. Each maps to a specific failure mode rather than a general principle.

Can I use this NHI policy template as it is?

Use it as a starting point. Adapt the numbers (credential lifetimes, review cycles, inactivity windows) to your risk appetite, check that every clause can be tested as a query against your systems, publish the exception register alongside the policy, and map clauses to the frameworks you are held to. A clause you cannot test becomes an audit finding.

Sources

From the publisher

HumanAudit, which publishes this site, is preparing the NHI Governance pack: an NHI policy, ownership register, lifecycle procedures and one control set mapped, as our interpretation, to PCI DSS v4.0.1, ISO/IEC 27001:2022, NIS2 and DORA. Planned for March 2027; not yet on sale, and no price has been published.

Monthly change log

Know when the NHI landscape changes.

One email a month from this reference: new deals, standards status changes and corrections. No sponsored content. Unsubscribe from any email.

We first email you a link to confirm. Privacy policy.