An Authorisation Test checks that a system enforces which identities may perform which actions on which resources, by attempting requests with different roles, users and tenants. It exposes broken access control such as insecure direct object references and privilege escalation. Include negative cases that must be denied, and run them in the build pipeline to catch regressions.
What an authorisation test actually proves
An authorisation test is not just a happy-path permission check. It asks whether the system consistently enforces who can do what, against the exact resource boundaries that matter, including cross-user, cross-role and cross-tenant access. The point is to validate the real decision point, not merely the UI or a single API route.
That distinction matters because broken access control often appears only when a request is crafted outside the normal application flow. A system can look correct for permitted users and still fail when an attacker changes an object identifier, switches tenant context, reuses a session, or tries a privileged action through a less obvious path.
Why negative cases matter as much as allowed cases
The most valuable tests are the ones that should fail. A strong authorisation test suite includes requests that must be denied, such as a lower-privileged user reading another user’s record, a tenant crossing into another tenant’s data, or a standard role attempting an admin-only action. If those checks are missing, the application may still be vulnerable even when the “expected” permissions work.
In practice, negative cases expose broken object level authorisation, broken function level authorisation and privilege escalation paths earlier than manual review usually does. They also prevent regressions when a new endpoint, policy rule or refactor accidentally widens access.
For broader testing patterns around object-level checks and authorisation failures, see the OWASP API Security Top 10 and OWASP’s Web Security Testing Guide.
How authorisation testing should be built into delivery
Authorisation testing is strongest when it runs as part of the build pipeline, alongside unit, integration and API tests. That lets teams catch missing deny rules, mis-scoped tokens, incorrect tenant separation and broken policy changes before release rather than after an exposure report.
The test design should reflect how the application really authorises access, whether that is role-based, attribute-based, relationship-based or policy-driven. The test is not about naming the model correctly, but about proving that the chosen model is enforced consistently across code paths, services and data layers.
Use the test suite to validate the decision boundary itself, not just individual screens or responses. A single permission bug can surface in multiple places, so the most useful tests focus on the shared enforcement logic and the requests most likely to bypass it.
For a deeper treatment of access models and enforcement patterns, see the Authorisation Models Guide and the Authorisation Maturity Model.
Common failure modes authorisation tests should surface
Authorisation tests are designed to reveal control gaps that often hide behind valid authentication. Typical failures include object references that expose another user’s data, role checks that protect the screen but not the API, policy logic that is skipped in one microservice, and tenancy rules that are enforced inconsistently between read and write paths.
They also help identify over-broad access that is technically functional but still dangerous, such as admin-like actions exposed to ordinary operators or service identities with wider privileges than their workflow requires. In modern systems, those mistakes often create the shortest path to data exposure or account takeover.
Where authorisation boundaries are especially complex, coarse-grained versus fine-grained authorisation becomes a practical design question as much as a testing one, because the wrong enforcement layer can leave object-level gaps even when the high-level policy looks sound.
Risk and Threat Considerations
Weak authorisation is dangerous because attackers do not need to break authentication if they can simply ask for something they should not be allowed to access. The risk is highest where identifiers are guessable, privileges are inherited too broadly, or tenant boundaries are assumed rather than enforced at every request path.
Failure mechanism: A request passes through because the system checks that the caller is logged in, but not whether that caller is entitled to the specific object, action or tenant context being requested.
Impact: The result can be unauthorized disclosure, data tampering, lateral movement across tenants, or privilege escalation that is difficult to spot until after damage has occurred.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V8 — Authorization | This term is about verifying authorization and denial behaviour on protected resources. |
| Recommendation — Test object, function and tenant access rules under V8 and confirm unauthorized requests are denied. | ||
| OWASP API Security Top 10 | API1 — Broken Object Level Authorization | The term explicitly targets object-level access checks and IDOR-style failures. |
| API5 — Broken Function Level Authorization | Authorisation tests should verify that privileged functions stay inaccessible to lower roles. | |
| Recommendation — Probe object references with alternate identities and tenants to confirm object-level access is enforced. Exercise privileged API functions with non-admin roles and verify consistent denial. | ||
| NIST SP 800-53 Rev 5 | AC-6 — Least Privilege | The test validates that permissions are restricted to only what each identity should perform. |
| IA-5 — Authenticator Management | The term sits in a testing chain that assumes identities and their credentials are correctly governed. | |
| Recommendation — Validate least-privilege enforcement by testing denied access paths for non-entitled users and services. Confirm test identities, roles and secrets are controlled so authorization results reflect real entitlement state. | ||
Practitioner Guidance
What to watch for: Treat every new endpoint, background job, batch action and admin function as a candidate authorisation test case, not just the obvious user-facing screens. The most common misses are paths that reuse shared business logic without reapplying the access decision at the point of use.
Practitioner takeaway: A good authorisation test suite proves denial as deliberately as it proves access, because “allowed” alone does not establish security.
Related resources from NHI Mgmt Group
- Guide: A2A Protocol Security Guide
- How should security teams test authorisation in web applications?
- How should security teams test API authorisation beyond a single found vulnerability?
- What is MCP Step-Up Authorisation and how does it implement least privilege for agents?
- What are MCP Authorisation Extensions and why do they matter for enterprise governance?
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 November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org