Identity Access Management

Role Mining: Build RBAC Roles From Existing Access

Corma Founder & COO Nikolai Fomm
Nikolai Fomm
COO and co-founder
December 1, 2026
1
minute of reading
Role Mining: Build RBAC Roles From Existing Access

This guide is for IT and security leads at companies of 50 to 500 people who need a role model before the next audit or hiring wave, and whose starting point is years of access granted one request at a time.

Role mining is the analysis of existing user access to find recurring patterns and turn them into roles for role-based access control (RBAC). In practice, you export who has access to which applications, group people by department and job, and promote the access most of a group shares into a role. Mining access that was merely granted also mines years of privilege creep, so the safer input is access people actually use. For a company of around 200 people, the target is 10 to 25 roles, not hundreds.

Key takeaways

  • Role mining derives roles from the access people already hold; finding a minimal exact role set is NP-complete, so roles never cover everything.
  • Mining raw grants copies privilege creep into new roles, so remove access with no activity over its normal usage cycle before grouping anyone.
  • Role mining's 80 or 90 percent figures measure two things: how common an access must be to join a role, and total role coverage.
  • For a 200-person company, Corma COO Nikolai Fomm puts a healthy role count at 10 to 25, and recommends consolidating beyond 100 roles.
  • NIS2 Article 21(2)(i) lists access control policies among minimum cybersecurity measures, and mined roles give each access a stated reason auditors can check.

What is role mining?

Role mining is a bottom-up method for designing RBAC roles: instead of writing roles from the org chart, you derive them from the permissions people already hold. RBAC itself was formalized in 1992 by David Ferraiolo and Rick Kuhn, and the NIST model became the ANSI/INCITS 359 standard in 2004, revised in 2012, according to the NIST role based access control project. In that model, each user holds one or more roles, and each role carries the privileges a job requires. Roles mirror job functions, not individuals. If you need the basics first, read our definition of role-based access control.

Role mining got its formal definition in 2007. Jaideep Vaidya, Vijayalakshmi Atluri and Qi Guo described the role mining problem as discovering an optimal set of roles from existing user permissions, and proved it NP-complete in their ACM SACMAT 2007 paper. Translated for an IT team: no tool guarantees the perfect role set. Every method trades exactness for a role list people can actually maintain.

Role mining is often confused with two neighbouring activities. The table separates them.

Role mining, role engineering and access reviews

Role miningRole engineeringAccess review
QuestionWhich access patterns already exist?Which roles should exist?Is each current access still justified?
InputAccess and usage data per userOrg chart, policies, mining outputCurrent access, owners, managers
OutputCandidate rolesApproved role catalogueKeep or revoke decisions, with evidence
CadenceAt design, then periodic re-miningAt design, then on org changesRecurring, often quarterly
OwnerIT or securityIT with business ownersApp owners and managers

Role mining feeds role engineering. Access reviews keep both honest over time.

Why "give her the same access as Sue" is what role mining has to undo

In companies without roles, onboarding often runs on comparison. An r/sysadmin thread on onboarding quotes the request every IT team knows: "Please give Mary the same access to X that Sue has." Copying a colleague is fast. It is also how privilege creep spreads, because Sue's access includes everything she accumulated, including the project she left two years ago.

The result is a stock of excess access, not a one-off mistake, and it concentrates on the people who have been around longest. Vadim, Head of IT Operations at Infinox, described it in a September 2026 interview with Corma:

"Anyone who'd been with the company for many years, or who held a senior managerial or C-level position, tended to have a lot of shadow access."

Vadim, Head of IT Operations, Infinox (September 22, 2026)

This is the trap of naive role mining. If the input is everything people hold, the analysis finds that senior people share a lot of access, and proposes a role that hands all of it to the next senior hire. The mining is accurate; the data is the problem. That is why the method below filters access before it groups anyone.

Should you mine granted access or used access?

Mine used access. Granted access tells you what someone can do. Usage data tells you what their job requires, and the gap between the two is exactly the excess you do not want to turn into a role. Each data source shows part of the picture.

What each data source contributes to role mining

SourceWhat it showsWhat it missesUse it for
IdP groups (Google Workspace, Entra ID, Okta)Group memberships and SSO-connected appsApps outside SSO, in-app roles, actual useThe structure you already have
App-level grantsWho holds an account, with which license type and in-app roleWhether the account is usedThe full access matrix
Activity and last login per appWho actually uses each app, and how oftenWhy they use itRemoving dead access before grouping
HR attributes (department, job title, manager, start date)Where each person sits in the organizationWhat access they needNaming and scoping roles
Tickets and approvalsWho asked for what, and who approved itAccess granted outside the processExplaining exceptions

Method note: this comparison combines the RBAC model described by NIST with the fields Corma documents as collected from direct integrations (last activity, date granted, granted by, roles, license type, groups) in its security and data documentation, updated June 15, 2026.

IdP groups stop at the identity provider. In Corma's NIS2 compliance checklist for IT teams (June 15, 2026), Nikolai Fomm, Corma's COO and co-founder, puts the consequence plainly: "Apply least-privilege and role-based access control across all applications, not only the ones behind your identity provider." A role model mined from IdP groups alone leaves every app bought on a company card outside the model.

Usage frequency matters for compliance too. Satelia, a French healthtech company, found that its external IT provider's reports lacked "user permissions, role-based access, and usage frequency which are key requirements for compliance," according to its Corma customer story. Building that matrix by hand across a hundred apps is the expensive part of role mining. An identity governance platform that maps every identity to its entitlements and usage keeps it current, which is what makes re-mining cheap later.

How to run role mining in six steps

This method works on a spreadsheet export for a company of 50 to 500 people. Tools make it faster, not different.

  1. Scope the population. Mine employees only. Set aside service accounts, bots and AI agents, which need their own dedicated roles, and external contractors, whose access should be time-bound. Mining them together with staff produces roles nobody recognizes.
  2. Build the access matrix. One row per person and application, with license type, in-app role, date granted and last activity, plus department, job title and manager from your HR tool. Cover every app you can see, not only the SSO-connected ones.
  3. Strip unused access from the input. Remove, from the mining data (not yet from the people), any access with no activity over a window longer than the app's normal usage cycle. We suggest 90 days for daily tools. Keep named exceptions for legitimate rare use: at Infinox, the team leaves notes on users, "for example flagging that someone is a rare auditor who only logs in once a quarter to sign off on something, so the team knows not to flag that as unusual."
  4. Group, then promote common access. Start broad. Access shared by nearly everyone is your company baseline, often called birthright access. Then group by department, and only then by job title. Within each group, promote an app or permission into the role when most active members use it (see the threshold below).
  5. Name roles in business language and cap the count. "Sales" or "Finance: payables" beats "Group_17". Corma's help center shows the expected shape with a Sales bundle made of Salesforce, Aircall and Leapsome. On size, Nikolai Fomm wrote in May 2026: "For a 200-person company, 10 to 25 well-designed roles is healthy. Beyond 100 roles, you should either consolidate or move to a hybrid model with attribute conditions."
  6. Validate, pilot, re-mine. Managers confirm each role, you check that no role combines conflicting duties (separation of duties), you apply roles to new joiners first, then you re-run the analysis every six months to catch drift.

How common does access have to be to become part of a role?

There is no universal threshold, and the figures in circulation measure two different things. Some practitioner guides set the bar for inclusion in a role at 80 to 90 percent of a job group holding an entitlement, or at users sharing 90 percent of their access. Others cite an 80/20 rule meaning roles can automate about 80 percent of permissions, which is a coverage target for the whole model, not an inclusion bar.

The research settles the confusion. The 2007 role mining paper defines a variant called the δ-approx RMP, where roles only need to describe existing permissions within a tolerance δ, and a Minimal Noise RMP. The tolerance is a setting you choose, not a constant. Our recommendation: include an access in a role when at least 80 percent of the group's active members use it, raise the bar to 90 percent or more for admin rights and for apps holding customer data or money, and accept that the model will cover most access, never all of it.

Top-down, bottom-up or hybrid: which fits a 50 to 500-person company?

Hybrid fits most mid-sized companies: HR attributes decide who a role is for, usage decides what it contains. The three approaches compare as follows.

Role design approaches compared

ApproachStarts fromStrengthWeaknessFits
Top-downOrg chart, job descriptions, policiesRoles use business languageIgnores how work is really doneSmall or newly structured teams
Bottom-up (role mining)Existing access and usageGrounded in realityCopies excess when run on raw grantsLarge, messy access estates
HybridHR attributes as labels, usage as contentBusiness names, evidence-based contentNeeds clean HR dataMost 50 to 500-person companies

Practitioners on r/iam give the same advice for early RBAC projects: start from business functions rather than job titles, because titles fragment faster than work does.

Below roughly 250 people, keep it light. Corma's guide to SaaS management for small businesses (September 2026) argues that complex role models and role mining cost more than they return at that size, and that "a simple role per team (sales, engineering, operations) with a list of default apps is enough." Read that as a description of the output, not a ban on the method: a simple role per team is exactly what one afternoon spent on your access export should produce.

When are roles not the answer?

Roles are the wrong tool when an access is rare, temporary or conditional. An r/IdentityManagement thread sums up the dilemma in its title: RBAC feels too blunt and ABAC too hard. The answer is rarely more roles.

Ignore this and you get role explosion. Nikolai Fomm's warning: "When you cross 1,000 roles for 500 users, your RBAC has effectively become a worse version of ABAC." Job titles are a weak proxy too. One Gartner Peer Insights reviewer of Corma wrote that "the visibility from Corma helped us review whether access matched the persons actual responsibility rather than only their job title," while noting that such situations "require careful role mapping before automation can be trusted." That is the order this guide recommends: map first, automate second.

How does role mining help with NIS2 and ISO 27001 audits?

It turns access from a list into a justification. Under Article 21 of the NIS2 Directive, the cybersecurity risk-management measures of essential and important entities must include at least "human resources security, access control policies and asset management" (point (i), Directive (EU) 2022/2555 on EUR-Lex). A role gives each access a stated reason: this person holds this access because of this role, approved by this owner. Without roles, every access has to be justified one by one.

Roles also shrink the review workload. Reviewing 15 roles and a short exception list is a different job from re-approving thousands of individual access rights. Héloïse Rozès, Corma's CEO, described the pressure in December 2025: "it's really a pain point for midsize market companies, because as regulations increase, the IT teams do not really increase in number or budget." On quarterly access reviews, Nikolai Fomm adds: "This is the single most underused control in mid-market companies and the easiest audit win." ISO/IEC 27001 audits look at the same evidence, which is why automated, audit-ready access reviews pay off faster once roles exist.

How Corma turns mined roles into enforced access

Corma does not invent your roles for you. It gives you the access and usage matrix to mine, across SSO and non-SSO apps, then enforces the roles you decide on in day-to-day access management. Each capability below is documented and dated in Corma's help center and changelog.

  • The matrix, kept current. From direct integrations, Corma collects username, email, last activity, date granted, granted by, roles, license type and groups, with usage down to daily, weekly or monthly counts and login frequency (security and data documentation, June 15, 2026).
  • Inactivity, app by app. An inactive threshold is the number of days after which a license is flagged as inactive when no connection is detected, set per app (help center, June 2, 2026). That is step 3 without the spreadsheet.
  • HR attributes in sync. Departments and job titles are synced from more than 80 HR tools, each showing its source and how many users are tied to it (changelog, July 31, 2026).
  • Roles as groups and bundles. Dynamic user groups add members from rules on Department, Job, Country and Manager, with a live count of matching employees before you save (help center, August 13, 2026). App bundles assigned to a group give new joiners their tools from day one, and Corma flags bundle conflicts (changelog, March 9, 2026).
  • Non-human identities kept apart. Each user carries a type: Employee, External, Agent or Service Account (changelog, March 18, 2026). That is step 1, done at the source.
  • Reviews on real access data. Access reviews pull real access data from your SaaS apps, remind reviewers and log every decision. As documented in August 2026, campaigns are scoped by application, so you review a role's apps rather than the role as a single object.

The result shows up at onboarding. At Infinox, Vadim says the core access, "being able to log in, get email, and start working with most tools ready, is largely automatic," and his team then moves "on to departmental or role-specific access that hasn't been provisioned yet." That split, a baseline plus department roles plus requests, is the model this guide builds. Corma's automated provisioning and onboarding applies it to every new joiner.

Corma is EU-hosted, GDPR-aligned and ISO/IEC 27001:2022 certified, and was named in the Gartner Magic Quadrant for SaaS Management Platforms in 2025 and 2026. If you want to see your own access matrix before you design a single role, book a Corma demo.

Frequently asked questions

What is the difference between role mining and role engineering?

Role mining discovers recurring patterns in existing access. Role engineering is the broader process of defining, approving and maintaining roles. Mining output is one input to role engineering, alongside the org chart, security policies and business owners' validation.

Do you need a dedicated role mining tool?

Not at 50 to 500 employees. A complete access matrix with usage data and HR attributes, a spreadsheet or BI tool, and validation by managers are enough. Dedicated clustering tools pay off when you manage thousands of entitlements across many systems.

How many roles should a company have?

Corma's guidance for a 200-person company is 10 to 25 well-designed roles. Beyond 100 roles, consolidate or add attribute conditions. A role count approaching your headcount is a clear sign of role explosion.

How often should you repeat role mining?

Re-run it every six months, and after reorganizations or acquisitions. Nikolai Fomm's RBAC design guide (April 2025) notes that checking the model every six months is sufficient in most companies, and yearly when the organization is stable.

Can roles cover all access?

No. Rare, temporary and conditional access stays outside roles and is handled by approved requests, time-bound grants or attributes. Aim for roles that cover most access, and keep the exception list short and reviewed.

Is role mining worth it for a company under 250 people?

Yes, in its light form: one pass over the access export to define a company baseline and a role per team. The heavy version, with clustering algorithms and dozens of fine-grained roles, rarely pays off at that size.

AI-Powered Attacks Target the Access Nobody Reviews
Identity Access Management
December 1, 2026

AI-Powered Attacks Target the Access Nobody Reviews

Read Article
Employee Onboarding Automation Beyond Access: Getting New Hires Productive on Day One
Productivity
December 1, 2026

Employee Onboarding Automation Beyond Access: Getting New Hires Productive on Day One

Read Article
Zluri Acquired by Infotech: What It Means and How to Switch
Company Updates
October 27, 2026

Zluri Acquired by Infotech: What It Means and How to Switch

Read Article

The new standard in license management

Ready to revolutionize your IT governance?

Isometric illustration of a calculator with black number keys and orange operation buttons on screen
Black circular icon with two white rounded rectangles resembling a simple ghost or face designOrange circular icon with two white vertical bars on the left sideDark circular icon with white pause symbol and dotted pattern