Use it when an authenticated API call returns 403, or to check that an identity can do what it needs and nothing more.
REST API Authorization
Authorization controls the requested API operation and target data/resource after identity is established.
1. 403 = authenticated but not allowed — check scopes/roles for the identity.
2. Grant the least scope needed per client.
3. Check object-level access (one user must not read another's objects).
identity known → role or scope looked up → operation and target resource checked → 403 when not allowed → per-object check where it applies → decision logged
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
Read the effective model-based policy with an authorized reviewer. Verify an intended read and a separately approved denied operation; do not run a state-changing negative test merely because a GET succeeded.
Step 2 Common mistakes Narrow the fault
- Checking authentication but not object-level authorization.
- Admin scope for every integration.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
A username privilege label or permission on one YANG representation does not prove all equivalent representations are restricted.
Call an operation the identity should be allowed → 200 or 204. Call one it should not be allowed → 403. Read the role or scope assigned to the identity; on IOS XE, RESTCONF users need privilege 15 unless access-control rules grant less.
ReferenceWhat it is1 section · depth on demand
Direct Answer
Authorization controls the requested API operation and target data/resource after identity is established.
ReferenceHow it works1 section · depth on demand
ReferenceImportant terms & boundaries4 sections · depth on demand
Official Sources
Proof Boundaries
A username privilege label or permission on one YANG representation does not prove all equivalent representations are restricted.
In depth
Authorisation for REST APIs
Authentication says who is calling; authorisation decides what they may do. In OAuth 2.0, RFC 6749 expresses granted access as scope: the client requests space-delimited scope values, and the authorization server may grant less than requested and must say so. An access token represents the authorisation granted, and may be more restrictive than the original grant.
Authorisation models
| Model | Example |
|---|---|
| Scopes | network.read, network.write, wireless.admin |
| Role-based (RBAC) | Observer, operator, network admin, super admin |
| Resource-based | Rights per site, device group or tenant |
| Attribute-based | Conditions such as time, source network, device posture |
Checking authorisation on every request
| Check | Example |
|---|---|
| Method | A read-only role can GET but not POST, PUT or DELETE |
| Resource | An operator for site A can't change site B |
| Field level | Some users see configuration but not secrets |
| Object ownership | A user can only change objects they're allowed to manage |
admin$ curl -s -o /dev/null -w "%{http_code}\n" -H "Authorization: Bearer $READ_TOKEN" \
-X GET https://ctrl.example.net/api/v1/sites/branch-1/devices
200
admin$ curl -s -o /dev/null -w "%{http_code}\n" -H "Authorization: Bearer $READ_TOKEN" \
-X DELETE https://ctrl.example.net/api/v1/sites/branch-1/devices/ACC-B1-01
403
R1(config)# aaa authorization exec default group TACACS local
R1(config)# aaa authorization commands 15 default group TACACS local
RFC 6750 uses HTTP 403 with the insufficient_scope error when a token lacks the needed privileges.
Design rules
| Rule | Reason |
|---|---|
| Deny by default | New endpoints aren't accidentally open |
| Check on the server, every request | Clients can't be trusted to enforce |
| Narrow scopes for automation | A leaked token does less damage |
| Separate read and write credentials | Monitoring tools need read only |
| Audit write operations | Who changed what, through which API |
Documented example, not captured output.
Quick reference
Authorization decides what an authenticated API client may do: role-based access (read-only vs admin roles in Catalyst Center, Meraki org/network-level privileges), scopes in OAuth tokens, and per-resource checks.
Common flaw in APIs (OWASP API Top 10 #1, broken object-level authorization): the API checks that a user is logged in but not that they may access the requested object ID. Test that a read-only account cannot call write endpoints and cannot access other tenants' objects.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Expected output
curl -i -X DELETE -H "Authorization: Bearer <token>" https://api.example.net/v1/interfaces/Gi1Expected state: A read-only identity is refused a write.
HTTP/1.1 403 Forbidden
! Illustrative output, not captured Evidence.The token was accepted (otherwise 401) but the identity may not perform this operation. That is the desired answer for a read-only automation account.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → REST API Security → Authorization. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%