Least privilege is the security principle that every user, program, service and device should have only the minimum access needed to do its job, and nothing more. NIST defines it as restricting access privileges to the minimum necessary to accomplish assigned tasks. It limits what an attacker can do with a stolen account or a compromised application.
Key takeaways
- Least privilege covers people, programs, services and devices — not just human users.
- It is enforced with role-based access, just-in-time elevation and regular access reviews.
- The payoff is a smaller blast radius: a compromised account can only reach what it was allowed to touch.
Most breaches do not start with a brilliant hack. They start with an ordinary account that had far more access than it needed — and an attacker who used every bit of it. Least privilege is the discipline that stops that from happening.
What is least privilege?
Least privilege is the principle that every user, program, service and device gets only the minimum access needed to do its job, and nothing more. NIST defines it as restricting access privileges to the minimum necessary to accomplish assigned tasks.
The idea dates to a 1975 paper by Jerome Saltzer and Michael Schroeder, who wrote that every program and every user should operate using the least set of privileges necessary to complete the job. Fifty years later, the same sentence still describes one of the most effective controls in security.
Note what the definition covers. It is not only about people. A web server, a backup job, a CI pipeline and an API key are all subject to it. When any of them is compromised, the attacker inherits exactly the permissions that identity held.
Why does least privilege matter?
Least privilege matters because it shrinks the damage from the breaches you cannot prevent. A stolen password is bad; a stolen admin password is a company-ending event.
Think of access as a blast radius. An accounts clerk with access to one shared folder can leak one folder. The same clerk with domain admin rights can reach every server, every mailbox and every backup. Least privilege keeps the radius small, so one compromised identity cannot become a full compromise.
It also makes attacks harder to carry out. Malware running as a standard user cannot install system-wide software, change security settings or read other users' files. Ransomware that lands on a least-privilege account encrypts far less than ransomware running as an administrator.
How does least privilege work in practice?
Least privilege works by deciding access from the job, not from convenience. You start with what a role actually does, grant only that, and add a process for the exceptions.
Three mechanisms do most of the work. Role-based access control (RBAC) groups permissions into roles tied to job functions, so access follows the role rather than individual favors. Just-in-time access grants elevated rights only for a limited time, then removes them. And regular access reviews remove permissions people no longer use.
Microsoft's guidance for Entra roles makes the same point in practical terms: when you assign a role, consider a specific set of permissions, over a specific scope, for a specific period of time. Avoid broader roles at broader scopes even when it seems more convenient.
Least privilege vs zero trust: what is the difference?
Least privilege is a single principle; zero trust is an architecture built from several principles, including least privilege. Confusing the two is common, and it matters when you buy products.
NIST SP 800-207 defines zero trust as a set of concepts for making accurate, least-privilege, per-request access decisions on the assumption that the network is already compromised. The full SP 800-207 publication sets out the seven tenets behind that definition. So least privilege is the access decision; zero trust adds continuous verification, device health checks and per-session enforcement around it.
| Approach | What it decides | What it adds |
|---|---|---|
| Least privilege | How much access an identity gets | Minimum permissions, narrow scope, time limits |
| Zero trust | Whether each request is trusted, every time | Identity verification, device posture, per-session checks |
| Perimeter security | Whether you are inside the network | Firewalls and VPNs; little checking once inside |
You can practice least privilege without a full zero trust program, and you should. But a zero trust program without least privilege is just a new perimeter with a fancier name.
Least privilege examples
Examples make the principle concrete, because every environment applies it differently. The pattern is always the same: match the permission to the task, then add an expiry.
- Helpdesk: password resets for standard users, approved and time-limited, instead of permanent domain admin rights.
- Developers: read access to production logs and deploy rights through a pipeline, not direct write access to the production database.
- Cloud workloads: an application role that can read one storage bucket, not a shared access key with full account access.
- Finance: one person creates a payment, another approves it — least privilege plus separation of duties.
- Home users: a standard account for daily use and a separate admin account used only when installing software. The same idea protects a home network — see our guide to securing your Wi-Fi.
The cloud example deserves emphasis. OWASP's secure cloud architecture guidance recommends authenticating services with a workload identity or federated role that obtains short-lived credentials, instead of embedding a persistent access key. A leaked short-lived credential expires; a leaked root key does not.
What about privileged access and admin accounts?
Privileged access is where least privilege pays off most, because admin accounts are the accounts attackers want. The rules here are stricter than for ordinary users.
Microsoft recommends fewer than five Global Administrator assignments in an organization, and fewer than ten privileged role assignments overall. Admins should use a non-privileged account for everyday work and a separate privileged account only for admin tasks, with MFA on every administrator account.
Just-in-time elevation is the key tool. Instead of holding an admin role permanently, an admin is made eligible for it and activates it for a limited time when needed. The activation is logged, and the access disappears when the window closes. That turns a permanent target into a moving one.
How to implement least privilege in 7 steps
Implementing least privilege is a program, not a one-off project. These steps work for a team of five or five hundred.
- Inventory privileged access. List everyone with admin rights, every service account, and every standing API key. Most teams are surprised by the count.
- Remove obvious excess. Revoke admin rights from people who no longer need them, and delete orphaned accounts from departed staff and old projects.
- Give everyone a standard account. Daily work happens on a standard account. Admin work happens on a separate account, with MFA.
- Build roles around jobs. Define a small set of roles — finance, helpdesk, developer, manager — and assign access to the role, not the person. The RBAC guide for this is NIST SP 800-162.
- Add just-in-time elevation. Replace standing admin access with approved, time-limited activation for the tasks that genuinely need it.
- Review on a schedule. Quarterly access reviews catch drift: permissions granted for a project that ended months ago, or a role change nobody updated.
- Monitor what is actually used. Permissions that have not been used in 90 days are candidates for removal. Usage data beats guesswork.
If you use Microsoft 365, Entra ID Governance gives you the tooling for most of this: access reviews, entitlement management and Privileged Identity Management. If you do not, the same steps work with a spreadsheet and a calendar reminder — the discipline matters more than the tool.
Common least privilege mistakes
Most least privilege programs fail in predictable ways. Avoid these five mistakes and you will be ahead of most organizations.
- Granting access by copying a colleague. Copying an existing user's permissions passes on years of accumulated excess. Start from the role instead.
- Never removing anything. Access only grows unless someone removes it. Every grant needs an expiry or a review date.
- Sharing admin accounts. A shared admin login cannot be attributed to a person, cannot be revoked for one person, and hides who did what.
- Treating it as a one-time project. Roles change, projects end, people move teams. Without reviews, least privilege decays within months.
- Blocking work with no elevation path. If the only way to get access is a slow ticket queue, people will find workarounds. Provide fast, approved, time-limited elevation.
The bottom line
Least privilege is not about trusting people less. It is about making sure a single stolen password, a single phished employee or a single compromised service cannot hand an attacker the keys to everything. Give each identity the minimum it needs, for the shortest time it needs it, and review it regularly.
Start today with the inventory: list your admin accounts and ask which ones are truly needed. Then check your own exposure with our free pwned password checker.
For the next steps, read our small business cybersecurity checklist.
Frequently asked questions
What is least privilege in simple terms?
Least privilege means giving someone or something only the access it needs to do its job, and nothing extra. A marketing employee does not need admin rights on the finance server, and a web server does not need permission to delete the database.
What is the principle of least privilege with an example?
A helpdesk technician who resets passwords gets a role that can reset passwords for standard users, for eight hours, after approval. They do not get permanent domain admin rights, access to payroll, or the ability to change firewall rules.
Is least privilege the same as zero trust?
No, but they are closely related. Least privilege is one principle inside zero trust. Zero trust also requires verifying every request, checking device health and assuming the network is already hostile, as described in NIST SP 800-207.
What is the difference between least privilege and separation of duties?
Least privilege limits how much access one identity has. Separation of duties splits a sensitive process across two or more people, so no single person can complete it alone — for example, one person creates a payment and another approves it.
How do you implement least privilege in a small business?
Start with an inventory of who has admin rights, remove standing admin access, give people standard accounts for daily work, use separate admin accounts, turn on MFA for admins, and review access every quarter.
What is just-in-time access?
Just-in-time access grants elevated privileges only when needed, for a limited time, and then removes them automatically. Microsoft Entra Privileged Identity Management works this way, letting an admin activate a role for a few hours instead of holding it permanently.
Does least privilege slow people down?
It can, if it is done badly. Done well, it uses role-based access and a fast approval process for temporary elevation, so people get what they need quickly and the extra access expires on its own.
Which standard requires least privilege?
NIST SP 800-53 control AC-6 requires least privilege for federal systems, and NIST SP 800-171 requires it for contractors handling controlled unclassified information. It is also a core idea in ISO 27001, PCI DSS 4.0 and zero trust programs.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the NIST CSRC glossary definition, Microsoft Learn guidance on Entra least privilege, and NIST SP 800-207.
How we write and fact-check →