# Principle of Least Privilege

> Give each user or app just the access it needs, and no more.

**Field:** Software Development  
**Category:** Security  
**Also known as:** Least Privilege, PoLP, Minimal Privilege

## Think of it like

Think of it like the dog walker's key. It opens the gate, not the whole house.

## Definition

Least privilege means each person or app gets only the access it needs. A report tool that only reads data should not be able to delete it. A new team member gets the rooms they work in, not every room. If an account is stolen, the thief can only reach what that account could. It limits the harm of every mistake and every break-in.

## Example

Jack's report app uses a read-only account on the database. The app gets hacked, but the attacker can only read. Not one row can be deleted.

## Why it matters

Break-ins will happen. Least privilege decides whether one leads to a small leak or a total loss.

## Common mistake

Giving an app full admin rights because it is quicker. That one shortcut makes every future break-in worse.

## Three principles

- **Only what is needed.** Nothing extra.
- **For people and apps.** Every account.
- **Shrinks the damage.** Of any break-in.

## Related terms

- [Role-Based Access Control (RBAC)](https://learn.benibix.com/term/development/role-based-access-control)
- [Authorization](https://learn.benibix.com/term/development/authorization)
- [Secrets Management](https://learn.benibix.com/term/development/secrets-management)
- [Security Vulnerability](https://learn.benibix.com/term/development/vulnerability)
- [Zero Trust](https://learn.benibix.com/term/infrastructure/zero-trust)
- [Excessive Agency](https://learn.benibix.com/term/ai/excessive-agency)

---

Source: https://learn.benibix.com/term/development/principle-of-least-privilege
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.
