Access Control Explained: Who Gets In, to What, and Why

Access Control Explained: Who Gets In, to What, and Why

Access control is the set of rules and mechanisms that decide who can reach a system or a piece of data, and what they are allowed to do once they get there. The central question it answers is simple: for every person, device and application, which doors should open and which should stay shut? Getting that answer right is the foundation of almost every other security control.

Every security breach is, at its heart, an access control failure: someone reached something they should not have been able to reach. That may be an outsider who guessed a password, an employee who kept access to a system after changing roles, or a compromised account used to move sideways through a network. Strong access control does not prevent every attack, but it limits how far any attack can go.

Key takeaways

  • Access control answers two questions for every request: who is asking, and what are they allowed to do?
  • Authentication proves identity; authorisation decides what that identity may access; the two are different jobs.
  • The main models are discretionary, mandatory, role-based and attribute-based access control, and most organisations mix them.
  • Least privilege is the guiding rule: give each person the smallest access they need to do their job, and no more.
  • Access that is never reviewed drifts: roles change, people leave, and old permissions quietly pile up.

What access control actually means

Access control has two halves that are often confused. Authentication is proving who you are, usually with a password, a security key or a fingerprint. Authorisation is deciding what you may do once your identity is known. A locked office door tests authentication when it asks for a badge, and authorisation when it checks whether that badge opens this particular door.

Both halves need to work for access control to mean anything. Strong authentication with sloppy authorisation lets a genuine user wander into systems they have no business touching. Strict authorisation with weak authentication lets an attacker borrow a genuine identity and inherit all its rights. The two are partners, not alternatives.

Best for: every organisation that holds data or runs systems other people depend on, which is to say, every organisation.

The main access control models

The oldest model is discretionary access control, or DAC. Here the owner of a resource decides who may use it, as when a person shares a document with specific colleagues. It is flexible and familiar, which is why it underpins most file sharing and collaboration tools, but it is hard to control centrally, because every owner makes their own decisions.

Mandatory access control, or MAC, works the other way round. A central authority labels resources and users with clearance levels, and the rules are enforced by the system, not by individual owners. It is common in military and government settings, where confidentiality matters more than convenience, but it is too rigid for most businesses.

Role-based access control, or RBAC, is the workhorse of business IT. People are given roles, such as finance manager or support engineer, and each role carries a set of permissions. When someone joins, they get the roles for their job; when they move, their roles change. RBAC is easier to manage than giving each person individual permissions, and it makes reviews simpler, because the question becomes whether the role is right rather than whether each permission is right.

Attribute-based access control, or ABAC, makes decisions from attributes: who the user is, what the resource is, what device is in use, and the context, such as time and location. A rule might say that contractors may read project files only from managed devices during working hours. ABAC is the most flexible model and the hardest to keep simple, so it is usually layered on top of RBAC rather than replacing it. The same attribute thinking now applies to automated users, as our guide to AI data access policies, rules, risks and practical controls explains.

Model Who decides access Best suited to
Discretionary (DAC) The resource owner File sharing and collaboration
Mandatory (MAC) A central authority, by labels Government and defence settings
Role-based (RBAC) Roles assigned to people Most business systems
Attribute-based (ABAC) Rules on user, resource and context Fine-grained and conditional access

Least privilege and separation of duties

Least privilege is the principle that each person, device and application should have the smallest access needed to do its job, and nothing more. It sounds obvious, yet it is the principle most often broken, usually for convenience. Giving a new starter the same access as a colleague who has been there for years is faster than working out what they actually need, and the extra access is rarely removed later.

The damage from excess privilege shows up when an account is compromised. An attacker who takes over an account inherits its permissions, so an account with broad access gives the attacker broad reach. Least privilege turns a single compromised account from a catastrophe into a contained incident.

Separation of duties is the companion principle: no one person should be able to complete a sensitive process alone. The person who creates a payment should not be the one who approves it, and the person who deploys code should not be the one who approves it for production. Splitting the steps means a single mistake, or a single dishonest act, is not enough to cause harm.

Both principles need regular review to survive contact with real life. Roles change, projects end, and temporary access becomes permanent unless someone checks. Our guide to keeping retrieval systems from leaking through access control shows how the same principles apply when the user is an AI system rather than a person.

A man reviewing a diagram of user accounts and connections on a large monitor in an office
Access control is easiest to manage when roles and permissions are visible in one place, so reviewers can see who can reach what.

Physical and logical access control

Access control is not only about software. Physical access control covers doors, badges, turnstiles and visitor logs, and it protects the same assets from a different direction. A server room with a locked door and a badge reader is an access control decision, just as a database permission is.

The two kinds meet more often than people expect. A visitor who tailgates through a door can plug a device into the network, and a cleaner with out-of-hours access can reach a desk with a logged-in computer. Physical and logical controls should be planned together, because a gap in one undermines the other.

Logical access control covers the digital side: sign-in systems, permissions on files and databases, network rules and application roles. Modern practice ties the two together, so that losing a badge or leaving the company revokes both the door and the account at the same time.

Best for: organisations that need to show auditors, customers or regulators that access to premises and systems is genuinely controlled.

How access decisions are made in practice

In a typical system, an access request passes through three steps. First the user authenticates, proving who they are. Then a policy engine checks the request against the rules: the user role, the resource, the action requested and the context. Finally an enforcement point, such as the application itself or a gateway in front of it, allows or denies the request.

Good systems log every decision, including denials. Those logs are the evidence that access control is working, and they are invaluable when something goes wrong, because they show who tried to reach what and when. A system that grants access without logging it is a system nobody can audit.

Decisions should also be fast and understandable. If access control is slow or confusing, people find ways around it, such as sharing accounts or copying data to personal storage. The best access control is the kind people barely notice until it stops something it should stop.

For AI systems the same three steps apply, with an extra complication: the agent acts on behalf of a user, so its permissions must be scoped to that user task. Our guide to resource access controls that stop an agent reading what it should not explains how teams handle that boundary.

Common mistakes to avoid

The most common mistake is never reviewing access. Permissions are granted when someone joins or changes roles, and then forgotten. Over years, people accumulate access to systems from three jobs ago, and leavers sometimes keep accounts that nobody disables. A regular access review, even a simple one, catches most of this drift.

The second mistake is giving standing administrative access to people who need it only occasionally. An administrator account that is always active is always available to an attacker. Just-in-time access, where elevated rights are granted for a short period and then removed, is safer and is now standard practice in larger organisations.

The third mistake is treating access control as a one-off project. New systems arrive, teams reorganise and contractors come and go, so the access model needs an owner and a regular review cycle. Without an owner, it decays quietly until an incident exposes it.

Access control checklist

  • List every system and the data it holds, and name an owner for each one.
  • Define roles for each system and keep the role list short enough to review.
  • Give new starters only the roles for their job, and remove access on the day someone leaves.
  • Review access at least twice a year, and after every reorganisation.
  • Use just-in-time access for administrative rights instead of standing admin accounts.
  • Require a second factor for access to sensitive systems and remote access.
  • Log access decisions, including denials, and check the logs regularly.
  • Test the controls: try to reach something you should not be able to, and see what happens.

Frequently asked questions

What is the difference between authentication and authorisation?

Authentication proves who you are, while authorisation decides what you may do. A password check is authentication; the permission that lets you read a file but not delete it is authorisation. Both must work for access control to hold.

What is the principle of least privilege?

It is the rule that each person, device or application should have the smallest access needed to do its job, and no more. It limits the damage when an account is compromised, because the attacker inherits only that small set of permissions.

Which access control model should a small business use?

Role-based access control is the usual starting point, because it is simple to manage and easy to review. Add attribute-based rules, such as device or location conditions, only where a specific risk justifies the extra complexity.

How often should access be reviewed?

At least twice a year for ordinary systems, and more often for sensitive ones. Access should also be reviewed whenever someone changes roles, a project ends or a contractor engagement finishes.

What is just-in-time access?

It is access granted for a short, defined period, such as an hour to perform an administrative task, and then removed automatically. It replaces standing administrative accounts that are always active and always at risk.

Does access control apply to AI agents and service accounts?

Yes, and it matters more, because agents act at machine speed and can reach many systems in seconds. Give each agent and service account its own identity, the smallest permissions its task needs, and the same review cycle as human accounts.

Latest articles

Scroll to Top