Subscribe to the Non-Human & AI Identity Journal

Who is accountable when a user can sign in but still cannot access the required API?

The application team is accountable for separating authentication from authorisation, while IAM and security teams are accountable for defining scope policy, consent timing, and revocation handling. If the integration bundles these steps together, failures become hard to diagnose and harder to audit across support, product, and security boundaries.

Why This Matters for Security Teams

When a user can authenticate successfully but still cannot reach the required API, the failure is almost never “just an access issue.” It is a boundary problem between authentication, authorisation, consent, token scope, and revocation handling. That boundary is where application teams, IAM teams, and security teams often assume someone else owns the outcome, leaving the integration brittle and the audit trail incomplete. The distinction matters because access problems are frequently symptoms of deeper identity design flaws, not isolated permission errors.

This is especially important in environments that rely on delegated access, service accounts, or machine-to-machine workflows. NHIMG research shows that 97% of NHIs carry excessive privileges, which makes scope mistakes more damaging when they do occur, as noted in the Ultimate Guide to NHIs. The practical lesson is that sign-in success does not prove the right to call a downstream API. In practice, many security teams encounter this only after production support tickets have already exposed a broken trust boundary rather than through intentional access design.

How It Works in Practice

Accountability is clearest when each control point has a named owner. Authentication answers who the caller is. Authorisation answers what that caller can do. For API access, the application team should own the integration logic that checks scopes, audience, consent state, and token freshness. IAM and security teams should own policy design, conditional access rules, and revocation expectations. This separation aligns with current guidance from the OWASP Non-Human Identity Top 10, which treats over-permissioning and lifecycle failures as core identity risks, not application afterthoughts.

In practice, the workflow usually looks like this:

  • The user authenticates through an identity provider and receives a token.
  • The app validates the token, then checks whether the requested API, scope, and tenant context are allowed.
  • Consent timing is evaluated so the app can reject tokens that are valid in format but stale in authority.
  • Revocation is handled through short-lived tokens, introspection, or downstream policy checks rather than relying only on initial sign-in.

For non-human identities, the same model applies even more strongly because API callers do not behave like humans. They can chain tools, retry automatically, and continue operating long after the business context changes. That is why NHI governance must include lifecycle controls, visibility, and offboarding discipline. NHIMG’s Key Challenges and Risks section highlights how quickly secrets and privileges drift when ownership is unclear. The best practice is to define who approves access, who implements policy, who monitors failures, and who can revoke access immediately when the integration no longer matches the intended scope. These controls tend to break down in federated environments with multiple identity providers and inconsistent token validation because each domain makes a different assumption about where authorisation actually happens.

Common Variations and Edge Cases

Tighter access design often increases implementation overhead, requiring organisations to balance operational speed against clearer accountability. That tradeoff becomes visible in edge cases such as multi-tenant SaaS integrations, consent-based delegated access, and hybrid human plus service-account workflows. There is no universal standard for this yet, but current guidance suggests treating token acceptance and downstream permission checks as separate control decisions even when the same platform issues both.

One common failure mode is the “authenticated but unauthorized” state that is technically correct but operationally confusing. Support teams may see a valid login and assume the API should work, while the application rejects the call because the token lacks the required scope or the consent was granted too early. Another edge case is revocation lag: if a user or service loses access after sign-in, the system must still stop API use quickly enough to limit exposure. For that reason, short-lived tokens and explicit revocation checks matter more than long session windows.

For teams documenting accountability, the safest framing is simple: IAM owns the policy model, application engineering owns enforcement in the transaction path, and security owns the control requirements and exception handling. NHIMG’s 52 NHI Breaches Analysis shows how often failures emerge when identity, scope, and lifecycle are treated as separate problems instead of one chain. The model breaks down most often when legacy APIs cannot validate scopes consistently across gateways, proxies, and downstream services.

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 SP 800-63 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Covers overprivilege and access scope drift in identity integrations.
NIST CSF 2.0 PR.AC-4 Addresses access enforcement and permission validation for services.
NIST SP 800-63 AAL Supports assurance and token handling when sign-in succeeds but access fails.

Use assurance and session controls to ensure authentication strength matches access decisions.