# Authorization

> What a user may see and do once logged in. It comes after the login.

**Field:** Software Development  
**Category:** Auth  
**Also known as:** AuthZ, Permissions, Access Control

## Think of it like

Think of it like a hotel key card. It opens your room, but not anyone else's.

## Definition

Authorization decides what a logged-in user is allowed to do. It comes after logging in, which only checks who you are. An app might let every user read posts but only the author edit one. When the check fails, the server answers 403 Forbidden. It must be checked on the server for every request. Hiding a button is not enough.

## Example

Emma and Jack both log in to the same shop admin. Emma can issue refunds; Jack can only view orders.

## Why it matters

Broken access control lets one user see or change another user's data. It tops the OWASP list of web risks.

## Common mistake

Hiding a button and calling it done. Anyone can still send the request by hand, so the server must check.

## Three principles

- **What may you do?.** After who you are.
- **403 when denied.** Forbidden.
- **Checked on the server.** Every request.

## Related terms

- [Authentication](https://learn.benibix.com/term/development/authentication)
- [Role-Based Access Control (RBAC)](https://learn.benibix.com/term/development/role-based-access-control)
- [OAuth 2.0](https://learn.benibix.com/term/development/oauth)
- [OWASP Top 10](https://learn.benibix.com/term/development/owasp-top-10)

## Told apart from

- [Authentication vs Authorization](https://learn.benibix.com/compare/authentication-vs-authorization): Authentication checks who you are, and authorization decides what you may do. Logging in with a password is the first. Being let in to delete a post, or not, is the second. The check of who you are always comes first. An app cannot decide what you may do before it knows who you are.

---

Source: https://learn.benibix.com/term/development/authorization
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
