Use custom claims only for business attributes that the application can enforce as explicit policy inputs, such as domain, department, or tenant. Keep the claim source trusted, refresh it when the session changes, and avoid using claims as a permanent record of user entitlement.
How custom claims should be used in policy-based access control
Custom claims work best as policy inputs, not as the policy itself. Treat them as trusted attributes the application can evaluate at runtime, then make the access decision in the enforcing layer. That keeps the authorization model explicit, reduces coupling to the identity source, and avoids turning a claim into a permanent entitlement record.
Which claims belong in the policy decision path?
Use claims that describe business context relevant to the decision: tenant, department, region, customer tier, or similar attributes the application can reliably enforce. The useful test is whether the claim helps answer “should this request be allowed right now?” rather than “what has this user ever been assigned?”
A claim becomes a poor fit when it drifts into long-lived entitlement storage or is used as a substitute for governance. If the attribute changes through employment moves, tenant changes, or account recovery events, the policy must depend on a source that can be refreshed, validated, and revoked.
How to keep claim-driven authorization trustworthy
The claim source must be controlled and the evaluation point must be consistent. In practice, that means the application should trust only claims issued by a known identity provider or authorization service, and it should re-evaluate them when session state changes, tokens are refreshed, or a higher-risk action is attempted.
This is why policy-based access control benefits from a clear split between identity proof, attribute issuance, and access enforcement. For a broader view of authorization models and externalised policy, see Authorisation Models Guide. For teams building access governance around those attributes, IAM and IGA Basics is the natural companion.
When claims are carrying machine or service context as part of a broader access design, the same rule applies: the claim can describe current authorization context, but it should not become a permanently trusted substitute for lifecycle control. If the decision depends on a secret, token, or session, the freshness of that material matters as much as the claim content.
Risk and Threat Considerations
Custom claims become risky when teams confuse convenient context with durable authority. A stale or self-asserted claim can create over-broad access, especially when applications reuse the claim across sessions, ignore attribute changes, or treat it as evidence of entitlement instead of one input to a live policy decision.
Failure mechanism: The application trusts an outdated or weakly governed claim, then applies access based on prior state after the user’s role, tenant, or status has changed. This can lead to privilege persistence, tenant bleed, or unauthorized access after reassignment, offboarding, or session renewal.
Impact: Access decisions become harder to audit and revoke, and compromise of the claim source or token issuance path can widen blast radius across every application that accepts the same attribute without independent enforcement.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V8 — Authorization | Custom claims feed application authorization decisions and policy enforcement. |
| Recommendation — Validate that claims are only inputs to enforced authorization checks, not the sole source of truth. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | Claims should support minimum necessary access, not persistent broad entitlement. |
| IA-5 — Authenticator Management | Claim trust depends on controlled issuance and freshness of the underlying identity material. | |
| Recommendation — Limit claim-driven access to the minimum permissions needed for the current decision. Manage issuance, rotation, and revocation so claim sources remain trustworthy. | ||
| ISO/IEC 27001:2022 | A.5.15 — Access control | Policy-based access control with claims is a direct access-control design choice. |
| A.5.16 — Identity management | Claims depend on governed identities and attribute lifecycle changes. | |
| Recommendation — Define access decisions centrally and require claims to map to documented access rules. Keep identity and attribute lifecycle processes aligned so claims reflect current state. | ||
Practitioner Guidance
What to verify: Confirm each claim has a business owner, a trusted issuer, and a refresh rule tied to the state that can change it. If you cannot explain where the value comes from and when it is revalidated, it is too fragile for policy enforcement.
Decision rule: If the attribute affects authorization, keep it narrow, current, and explicit. If the attribute is being used to represent permanent access, move that logic into entitlement governance or a formal access control system rather than leaving it in a claim.
Common mistake: Teams often add claims because they are easy to consume in code, then let those claims accumulate as hidden authorization logic. That makes access reviews, revocation, and incident response much harder than if the policy were expressed directly and centrally.
Practitioner takeaway: Use custom claims as short-lived policy signals, not as authoritative records of who should have access; the control point should be the policy engine or application enforcement layer, not the claim itself.
Related resources from NHI Mgmt Group
- How should security teams use context-based access control without creating policy sprawl?
- What do teams get wrong when they use identity claims as access policy?
- How can teams decide whether to use context-based access control for GenAI?
- How should teams implement policy-based access control in modern applications?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 6, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org