What is Least Privilege?
Updated: Oct 28

Least privilege is the security principle of giving a user, application or process only the access it needs to perform an authorised task. That access should be limited to the relevant resources and actions, and retained only while it is needed.
For example, a broadband provider's support agent might need to view a customer's connection status but not change network-wide routing settings. A monitoring service may need to read router statistics without being able to modify the router configuration.
The principle is straightforward. Applying it properly means looking beyond a user's job title to what they can actually do, which systems they can reach and how long their access remains available.
How does least privilege work?
An organisation identifies a legitimate task, determines the resources and actions required, and grants the minimum access that allows the task to be completed. It then checks that the restrictions work and reviews them when circumstances change.
The National Institute of Standards and Technology describes least privilege as restricting access to the minimum necessary for an entity's function. The entity might be a person, a service account, an application or a process acting for a user.
A useful way to examine a permission is to ask four questions:
Who or what needs access? Identify the user, application, service or process.
What action is necessary? Distinguish viewing, creating, changing and deleting.
Which resource is involved? Limit access to the relevant account, device, dataset or service where possible.
When is it needed? Consider whether it is ongoing or should expire after a specific task.
The answer depends on the system. Some products support fine-grained permissions; others offer only broad roles. Where a tool cannot enforce a necessary boundary, an organisation may need a compensating control or a different design.
A practical broadband example
Imagine a UK internet service provider investigating a customer's intermittent connection. A support agent needs to see recent line status and relevant diagnostic information. They do not need access to every customer's records or permission to change the core network.
An illustrative access design might look like this:
Identity | Necessary access | Access that needs separate justification |
|---|---|---|
Support agent | View the relevant customer's connection status and permitted diagnostic history | Change network-wide configuration or export all customer records |
Network engineer | Investigate and change specified network equipment when authorised | Access unrelated financial or HR systems |
Monitoring service | Read the metrics required for alerts | Modify router settings or create administrator accounts |
Temporary contractor | Access the agreed system for the agreed work period | Retain access indefinitely after the work ends |
The exact permissions depend on the provider's systems and responsibilities. This is an explanatory example, not a claim about any particular ISP.
The illustration shows how access can be restricted by task, action, resource and time. Those boundaries matter together: a read-only role may still expose too much information if it can read every customer's data.

Why is least privilege important?
Every permission gives an account or process a capability. If that account is compromised, misused or makes a mistake, its available permissions influence what can be affected.
Limiting unnecessary access can reduce the scope of accidental changes, data exposure and unauthorised activity. It can also make it easier to identify why an account has a particular capability. The UK's National Cyber Security Centre guidance recommends giving administrators the permissions needed for their work without granting excessive access.
Least privilege does not guarantee that a breach cannot happen. An attacker may exploit a vulnerability, steal another credential or misuse permissions that are legitimately required. It works alongside patching, authentication, monitoring, segmentation and incident response.
Authentication, authorisation and access control
Authentication establishes an identity. Authorisation decides whether that identity is allowed to perform a particular action. Access control is the mechanism used to enforce those decisions.
Least privilege guides the authorisation policy: access should be no broader than the task requires. Strong authentication can make an account harder to impersonate, but it does not by itself make an overprivileged account appropriately restricted.
A server should check access to the specific action and resource being requested. OWASP's authorisation guidance recommends denying access by default and validating permissions on every request. Hiding a button in an interface does not replace a server-side check.
Roles, attributes and effective permissions
Role based access control groups permissions into roles. A support role, for example, can give staff the capabilities needed for support work. Roles are easier to manage than assigning every permission individually, but a role can still be too broad.
Attribute based access control can use additional information, such as the user's team, the resource's ownership or the circumstances of the request. These models can work together. Neither automatically guarantees least privilege: the policy and its enforcement determine the result.
Effective access is what an identity can actually do after all applicable rules are considered. Direct grants, group memberships, inherited roles and permissions held by applications can combine. A review that looks only at one role may miss another route to the same resource. The precise evaluation rules, including how explicit denials interact with grants, depend on the platform.
Least privilege and privilege escalation
Privilege escalation occurs when an identity gains access beyond what it should have. Vertical escalation can involve gaining a more powerful role; horizontal escalation can involve accessing another user's resources at a similar permission level.
Least privilege reduces unnecessary standing access and can limit the consequences of a compromised identity. It does not repair a vulnerability that lets an attacker bypass an authorisation check. Secure implementation and testing are needed as well as carefully assigned permissions.
Temporary access and privileged accounts
Some jobs require powerful permissions. An engineer performing a network change may need elevated access for a short period. A controlled temporary grant can provide the necessary capability for the approved task and remove it afterwards.
This is often called just-in-time access. It is useful only when the process actually enforces its scope and expiry, including any sessions or credentials that remain valid after the grant ends. Check how the particular platform handles revocation and propagation.
Separate everyday and administrative accounts can also reduce unnecessary exposure of privileged credentials. Emergency access still needs a practical, tested process: an access policy that prevents legitimate recovery can harm availability.
Least privilege for applications and service accounts
Automated services need permissions too. A backup process may need to read selected files and write to a backup destination. A dashboard may need to read monitoring data but not administer the devices it displays.
Give each service a distinct identity where practical, limit its permissions to the operations and resources it needs, and protect its credentials. Avoid using a human administrator's account for routine automation. Review integrations and API tokens when their purpose changes or they are no longer used.
The NCSC recommends limiting the privilege and reach of applications so that a compromised process has less access to other resources.
How to put least privilege into practice
Identify identities and sensitive resources. Include people, service accounts, integrations, administrative interfaces and data stores.
Map real tasks to required actions. Separate read, change, delete and administrative capabilities, and identify the specific resources involved.
Set a default position. Deny access unless a justified rule permits it, while accounting for resources that are intentionally public.
Grant and test. Check both that permitted tasks work and that access to unrelated resources or actions is denied.
Review effective access. Include inherited permissions, groups, service identities, standing administrator roles and exceptions.
Remove or adjust access when work changes. Revisit access after role changes, project completion, supplier departure and application retirement.
Monitor and respond. Record appropriate access decisions and investigate unexpected privilege changes or use, while protecting sensitive logs.
Start with high-impact access, such as administrators, shared infrastructure and sensitive customer information. Use a documented exception and review date when a platform cannot enforce the intended restriction. Make changes carefully so that legitimate work and recovery remain possible.
Common misconceptions
Does least privilege mean nobody should have administrator access?
No. Some tasks need administrative capabilities. The principle asks whether those capabilities are justified, appropriately scoped, protected and reviewed.
Is read-only access always safe?
No. Read access can still expose sensitive data. It should be limited to the information required, and bulk export or access to unrelated records may need separate controls.
Does a strong password or multi-factor authentication solve excessive access?
No. These controls help protect identity, but they do not determine what a successfully authenticated account can do. Permissions still need to be appropriate.
Can permissions be set once and forgotten?
No. Jobs, systems and integrations change. Permissions can accumulate over time, a problem known as privilege creep. Regular review and timely removal keep access aligned with current needs.
Key takeaway
Least privilege starts with the task, then limits the actions, resources and duration needed to complete it. Check the access that actually results, review it as circumstances change and combine it with other security controls.
Frequently asked questions
What is the principle of least privilege?
It is the principle of granting an identity only the access needed to perform its authorised function, limited to the relevant resources and period of need.
What is an example of least privilege?
A monitoring service can be allowed to read router metrics without being able to change the router's configuration. Restrict that account to the intended devices and read operations, rather than giving it a general administrator role. Test that metrics remain available and that attempted changes are denied. The account's other groups, credentials and access paths must not quietly restore the broader capability.
Does least privilege apply to applications?
Yes. Applications, automated jobs and service accounts should have only the permissions and resources necessary for their functions.
What is the difference between least privilege and access control?
Least privilege is a principle for deciding how much access is appropriate. Access control is how a system grants, denies and enforces access.
How does least privilege help with privilege escalation?
It reduces unnecessary permissions available to an identity and can limit the impact of misuse. It does not eliminate flaws that allow an attacker to obtain or bypass permissions.
What is privilege creep?
Privilege creep is the accumulation of access that is no longer required, often as people change roles or temporary projects end without permissions being removed.
How often should access be reviewed?
There is no single interval suitable for every system. Review frequency should reflect risk, the sensitivity of the resources and how often roles change, with additional reviews after significant changes. Also review access when someone joins, changes role or leaves, when temporary work ends, and when a service is retired. Name an owner for each privileged identity, record why its access is still needed and verify that removed permissions no longer work.

