Skip to content

Identity and access management (IAM): roles and access reviews

B2Bnetwork team · · 6 min

Security

In brief

Identity and access management (IAM) is the set of processes and tools that decide who has an account in a company's systems, what permissions they hold and when they lose them. The foundations are roles tied to job positions, the principle of least privilege, automatic granting and removal of access when people join, change jobs and leave, and regular access reviews by managers and system owners. Administrator and technical accounts need separate, stricter rules.

What IAM is and what it consists of

IAM answers three questions: who you are (identity and authentication), what you can do (authorization) and who decided that (oversight and evidence). In practice it consists of several elements:

ElementWhat it doesExample tool or standard
Identity sourceone record of people, usually fed from the HR systemuser directory
Single sign-on (SSO)one sign-in for many applicationsOpenID Connect, SAML
Multi-factor authenticationa second factor at sign-inpasskeys, FIDO2 security keys
Provisioningcreating and disabling accounts in applicationsSCIM (RFC 7644)
Entitlement managementroles, requests, approvals, reviewsIGA system
Privileged access (PAM)control of administrator accounts and their passwordspassword vault, just-in-time access

Authentication is covered in the article on MFA and passkeys, and sign-in protocols in the article on OAuth 2.0 and OpenID Connect. Here we focus on permissions.

Roles and least privilege

The RBAC model (Role-Based Access Control), described by NIST, assigns permissions to roles and roles to people. Instead of giving an accountant thirty individual permissions in the ERP, you assign the role “accounting: receivables”. When the scope of work changes, one role changes, not thirty entries.

The principle of least privilege (control AC-6 in NIST SP 800-53) says that everyone gets only the permissions they need for their work. Next to it sits separation of duties (AC-5): the same person should not be able to add a supplier and approve a payment to that supplier.

Common mistakes in role design:

  • role explosion: a separate role for every person, so RBAC stops organizing anything;
  • the “same as Smith” role: a new hire gets a copy of a colleague's permissions, including access that colleague collected over the years;
  • technical roles instead of business ones: a name like “GRP_APP_017_RW” tells nothing to the manager who must approve it in a review;
  • no conflict matrix: nobody wrote down which roles must not be combined.

In an application, the server checks authorization on every request, with deny by default. The OWASP Authorization Cheat Sheet describes these principles in detail, and access control flaws in APIs are covered in the article on API security.

Joiners, movers and leavers

The JML process (joiner, mover, leaver) is where permissions break down most often:

  1. Joiner. The account is created from the HR system, not from an email to IT. The role follows from the position and department, and additional permissions go through a request with approval.
  2. Mover. The new role arrives, the old one goes, ideally with a short transition period agreed in advance. Without that, after three department changes a person holds permissions from three departments.
  3. Leaver. Accounts are disabled on the last day of work, including cloud applications and vendor systems. Accounts not connected to automatic deprovisioning have to be on a list and closed by hand according to a procedure.

Control AC-2 in NIST SP 800-53 requires, among other things, defining who approves accounts, disabling unused accounts and reviewing accounts at a defined frequency. External engineers and vendors are a separate group: their accounts should have an expiry date that matches the contract and an owner on the company side.

Privileged and technical accounts

Administrator accounts are the most valuable target for an attacker. Good practices:

  • a separate admin account next to the regular one, with no email or web browsing;
  • permissions granted for the duration of a task (just in time) instead of permanently;
  • sign-in only with a phishing-resistant method;
  • session recording or a detailed log of admin sessions;
  • break-glass passwords in a vault, with an alert on every use.

Technical (service) accounts follow the same least privilege rule and have an owner and a review date. Instead of passwords stored in configuration, use platform-managed identities and short-lived credentials, as described in the article on secrets in applications. AI Workers increasingly have technical accounts too, and the same rules apply to them as to people.

Access reviews that make sense

A review (recertification) means a manager or system owner confirms that a person still needs a given access. Control AC-6(7) in NIST SP 800-53 describes reviewing user privileges and removing unnecessary ones. To keep a review from becoming “approve all”:

  • show business roles with a description, not technical group names;
  • flag changes since the last review and permissions unused for a long time;
  • review critical systems and privileged accounts more often than the rest;
  • remove access after the review automatically, not through a ticket to IT;
  • keep the evidence: who approved what, when, and what was removed.

Access reviews are one of the first things an auditor asks about, as described in the article on preparing for an IT audit. They are also part of the zero trust approach, where access is evaluated on every request. An example of putting these rules in place at a public office is described in the case of a KRI audit (Poland's National Interoperability Framework).

Questions and answers

What is the difference between RBAC and ABAC?

RBAC assigns permissions to roles and roles to people: easy to review and clear to the business. ABAC decides based on attributes, such as department, country, document classification and time of day, so it is more flexible but harder to audit. In practice many companies combine the two: roles grant baseline access and attributes narrow it in specific cases.

How often should access be reviewed?

The frequency follows from risk and the requirements the company is subject to. A good practice is to review privileged accounts and critical systems more often and the rest less often. NIST SP 800-53 does not prescribe a single interval but requires the organization to define one and stick to it. A review is also needed after a reorganization and after an incident.

Who should approve access to a system?

Two people for different reasons: the manager confirms that the employee needs the access for their work, and the system or data owner confirms that the role is appropriate. IT carries out the change but should not decide alone on access to business data. For privileged permissions, add approval from the security team.

What should you do with the accounts of people who have left?

Disable them on the day of departure in every system, including cloud applications, VPN and vendor systems, and delete them after the period set in the policy. Automatic deprovisioning triggered by a status change in the HR system works most reliably. Once a month, compare the list of active accounts with the list of employees and of contracts with external engineers.

What it looks like in a project

Want to check your application's security? Talk to an engineer.

Let's talk

Read more: Security