Access control is the set of rules and mechanisms that decide who can get into a system, what information they can see and what actions they can perform once inside. It applies to a building, a computer, an application or a database. In every case, the underlying question is the same. Who can do what, and under which conditions? Answering it well is one of the foundations of security.
A good everyday example of access control is a hotel. The room key card only opens your door, the lift takes you only to your floor and the cleaning staff have different access from the management. Nobody can go anywhere just because they are inside the building. The same happens in computer systems, or it should. When it does not, the most serious problems appear.
Access control is the key system of a building. It decides who gets in, where they can go and what they can do, and it makes sure nobody holds more keys than they need.
What is access control?
In technical terms, three elements are involved in access control. The subject is the person, program or device that asks for something. The object is the protected resource, such as a file, a room or a database. And the access control policy is the set of rules that decides whether that request is allowed. The mechanism that enforces the policy is called the reference monitor and it must step in on every access, without exception.
The golden rule of access control is least privilege. Every person, every program and every account should have only the permissions they need for their work. Not one more. It is not distrust of people, but a way of limiting the damage when something goes wrong, whether through a mistake, a stolen password or bad intentions. The damage stays confined to the perimeter of those permissions.
Identify, authenticate and authorise
Access control relies on three distinct steps that should not be confused. Identification is saying who you are, for example with a username. Authentication is proving it, with a password, a code or a key. Authorisation is deciding what that person can do once inside. To these is added the logging of what they do, which makes it possible to review what happened afterwards. Many incidents happen because one of the steps fails. Weak authentication lets someone pass themselves off as another person. Overly generous authorisation lets a legitimate person reach what they should not. And a lack of logs makes it impossible to know what happened and who did it. Solid access control looks after all four.

Physical and logical access control
Access control does not only concern computer systems. Physical access control protects real spaces, such as offices, server rooms and warehouses, with keys, cards, codes or biometric readers. Logical access control protects data and applications, with accounts, permissions and encryption. The two are more closely related than they seem, because anyone who physically gets into a server room can bypass the logical defences.
A complete approach to access control combines the physical and the logical. An unencrypted work laptop that gets lost is a failure in both worlds, and so is an access card that stays active after an employee leaves. Serious audits review both dimensions and check that they are consistent with each other.
Broken access control in web applications
With broken access control, authentication and authorisation are often confused. The first checks identity. The second decides permissions. Someone can be perfectly well identified and still have no right to see certain information. Many serious flaws happen because a system checks who you are properly, but does not check whether what you are asking for belongs to you, and it hands other people’s data to anyone who has logged in. The typical case is changing a number in the address of an invoice and seeing another customer’s, because the server does not check who it belongs to. That is why broken access control has topped the OWASP Top 10 list of web application risks since 2021.
Logical access control models
RBAC, role-based access control
Role-based access control is the most widespread model in companies. Permissions are grouped into roles that match job positions, such as accountant, editor or administrator.

Each person is given a role and, with it, its permissions. If they change jobs, the role changes. It is easy to understand and to review, and it is the one used by almost every content management system, such as WordPress with its subscriber, author, editor and administrator profiles, Joomla with its user groups or PrestaShop with its employee profiles.
The main advantage of role-based control is order. Instead of managing thousands of loose permissions, you manage a few well-defined roles. Its main risk is accumulation. Over the years, people change tasks and keep their earlier roles, until someone has more power than they should. That is why you need to review regularly who has what, and remove what is no longer needed.
ABAC and context conditions
Some systems decide according to attributes of the user, the resource and the context. They allow access only from the office, only during working hours or only from a recognised device. If something does not add up, such as a login from another country at three in the morning, the system asks for additional verification or blocks it. It is a more flexible and more secure model, but also more complex to configure and maintain. This approach connects with zero trust ideas, which start from not trusting anyone simply because they are inside the network. Every access is assessed again under the conditions of the moment. Large companies are adopting it progressively, and its principles are useful even for small organisations, which can apply them in a simple way, for example by requiring a second factor for sensitive access.
DAC and MAC, discretionary versus mandatory
In the discretionary model, the owner of a file or resource decides who gets access to it, as when you share a document with a colleague. It is convenient, but it depends on each person’s judgement. In the mandatory model, a set of central rules fixes the permissions, and the user cannot change them. It is used in very sensitive environments, such as defence or healthcare, where confidentiality is critical.
In practice, most organisations combine several access control models. The most delicate data is governed by strict rules, and everyday working documents are shared more freely. What matters is knowing which information is critical and protecting it according to its value. A written policy, even a single page, helps everyone understand what is shared, with whom and why.
Rules and access control lists
Rule-based control applies general conditions that do not depend on who the user is, such as a firewall that blocks a port for everyone or a system that only allows entry during certain time slots. Access control lists, known as ACLs, work the other way round. Each resource carries a list of who can do what with it. They are everywhere. File systems use them to decide who can read, write or execute each file, such as the rwx permissions in Linux or Windows ACLs. Routers and firewalls use them to decide what traffic passes between two networks. A badly written ACL lets through what nobody meant to allow, which is why they are reviewed together with the roles.
Physical security, systems and entry methods
Standalone, centralised and distributed systems
In buildings, physical access control is organised in three ways. A standalone system controls a single door with its own reader and memory, with no connection to anything else. A centralised system connects all the readers to a server, which stores the authorisations and logs every entry and exit. A distributed one spreads the decision across controllers that keep working even if the connection to the server is lost.
Connected access control systems add some very useful features. They raise real-time alerts about a forced door, allow a permission to be withdrawn remotely and generate reports of who was where.
Anti-passback prevents a card that has already been used to enter from being used again to let another person in.
Identification methods, from cards to biometrics
The way people identify themselves changes according to the level of security. Keypads ask for a code, which can be shared or spied on. Proximity cards and fobs are convenient, but they can be lent or cloned if they use old technologies. The mobile phone now works as a credential through NFC, Bluetooth or QR codes. Biometrics, with the fingerprint, the face or the iris, ties access to the person, although this data is especially sensitive. In Spain, the Spanish Data Protection Agency considers it a special category and strictly limits its use, for example for recording working hours.
Technologies that enforce permissions
The technologies that enforce access control in an organisation share the work between managing identities, verifying logins, watching over the most powerful accounts and delegating permissions between applications.
Identity and access management, IAM
In organisations, permissions are managed with identity and access management systems, known as IAM. They centralise accounts, roles and starters and leavers, so that removing a person from the company removes them from every application at once. Microsoft Entra ID, Okta or the open-source Keycloak project are common examples, and they are usually connected to the HR system so that hiring an employee automatically gives them the access that comes with their job.
Single sign-on and multi-factor authentication
Single sign-on lets you get into many applications with a single identity, for example email, the intranet and the sales software with the company account, thanks to protocols such as SAML or OpenID Connect. Concentrating everything in one account makes protecting it more important, which is why single sign-on always goes hand in hand with multi-factor authentication, which adds a code, a phone notification or a physical key.
Privileged access management, PAM
The most powerful accounts have their own tools, privileged access management or PAM. Instead of an administrator having full permissions permanently, they request them for a specific task, receive them for an hour and the tool records what they do with them. This just-in-time access reduces the damage if someone steals those credentials outside that window.
Delegated authorisation with OAuth
When an application needs to act on a user’s behalf in another one, protocols such as OAuth limit what it can do without handing over the password. A calendar app that asks to read your calendar receives a token that only allows it to read events, for a limited time, and that the user can revoke at any moment from their account.
Access control on a website
On a website, access control takes shape in several layers. User roles, which decide who can publish, edit or install extensions. Access to the hosting and the server, where the files are stored. Access to the database, which contains everything. And the accounts of connected services, such as email or payments. Each layer needs its own review.
The most frequent problems are simple to describe. Too many administrators. Old accounts belonging to agencies or collaborators that nobody has removed. Weak passwords or passwords shared between several people. Plugins with excessive permissions. And no second factor on the most powerful accounts. Almost every compromised website has one of these defects, and fixing them does not require advanced knowledge.
Benefits, challenges and reviewing authorisations
Benefits and challenges of access management
Good access control reduces the risk of leaks, limits the damage when an account is compromised and helps comply with regulations that require access to sensitive data to be restricted. It also provides traceability, since it lets you know who accessed what and when, an essential element in any investigation.
The challenges of access control are mostly about management. Over time, permissions that are no longer needed pile up, along with accounts of people who have left and exceptions granted in a hurry. Keeping control requires processes for granting, changing and removing access, and regular reviews. A permissions system without maintenance ends up being an open door with the appearance of order.
How to tell whether your permissions are right
To review your access control, ask yourself three simple questions. Do you know exactly who has access to your website, your hosting and your domain? Does each person have only what they need? Could you remove someone’s access in five minutes if necessary? If any answer is no, there is work to do. Most organisations discover, in their first review, access that nobody remembered granting.
Also check how the most powerful accounts are protected. Long and unique passwords, a second factor enabled and, if possible, physical security keys. Administrator accounts are the prize attackers are after, and they must be the best guarded. An activity log that records logins and permission changes makes it possible to detect strange behaviour before it causes damage. If you want to know to what extent this affects you, a WordPress security audit checks it on your own website.
Finally, it is worth documenting the access rules in writing. A sheet showing who has access to what, why and until when helps keep things in order and makes audits easier. It is especially useful if you work with agencies or freelancers. Establishing from the start that access is temporary and reviewed is much easier than trying to clean up a situation built up over years of collaborations.
Two least privilege failures with serious consequences
In 2019, the bank Capital One revealed that someone had accessed the data of more than a hundred million people in the United States and Canada. The perpetrator, a software engineer, had searched for misconfigured cloud service accounts and found one with more permissions than necessary. With it she was able to download customer information. In 2022 she was sentenced to probation with time already served.
For the bank, the financial consequences were enormous. In 2020 it agreed to pay 80 million dollars to settle the case with banking regulators, who found that it lacked the necessary security measures. It later reached a 190 million settlement with the affected customers. The underlying problem was not an exotic technique, but an overly broad permission in the wrong place.
Another widely cited case is that of Edward Snowden, the former contractor of the US National Security Agency who leaked documents in 2013. According to press reports, such as those published by NPR, his position as a systems administrator gave him access to far more material than he needed, and he reportedly persuaded some colleagues to give him their passwords. It was cited as an example of what happens when power is not limited.
Both of these access control cases share the same lesson. Excessive access is a risk, both against external attackers and against insiders. It is not about suspecting anyone, but about making sure no system depends on everyone always behaving well. Least privilege, logs and regular reviews are quiet defences that greatly reduce the impact of any incident, intentional or not.
The origin of authorisation models
Today’s models were born in military and academic research in the 1970s. In 1971 Butler Lampson described the access matrix, a table that crosses subjects and objects and states what each one can do. Access control lists are nothing more than the columns of that table stored alongside each resource. In 1973 David Bell and Leonard LaPadula formalised the mandatory model to protect classified information, with its rule of no read up and no write down.
The US Department of Defense incorporated discretionary and mandatory control in 1983, in the evaluation criteria known as the Orange Book. In 1992 David Ferraiolo and Richard Kuhn, of NIST, proposed role-based access control, which became a standard in 2004 and is today the most widely used model in companies.
The latest step was attribute-based access control, which NIST described in a 2014 guide and which serves as the basis for zero trust models.