Join our Newsletter — 33% off our NHI Course
Home› Guides› Role Mining and Role Design Guide
Guide Identity Governance (IGA)

Role Mining and Role Design Guide

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 24 November 2026 10 min read
On this page

Roles are meant to make access simple: give someone a role and they get what their job needs. In practice, many organisations end up with thousands of roles, many nearly identical, some with nobody assigned and others granting far more than any job needs. Role explosion makes reviews meaningless, provisioning slow and least privilege impossible. This guide explains how to design a role model that stays manageable, how to use role mining to discover roles from existing access, and how to maintain roles over time, including for non-human identities.

Key takeaways

  • Aim for a small number of well-understood roles covering most access, with requests and attributes handling the rest. Chasing 100% role coverage creates role explosion.
  • Use a layered model: business roles (what a job needs) built from technical or application roles (what a system grants).
  • Role mining finds patterns in existing access, but existing access includes errors. Validate mined roles with business owners.
  • Every role needs an owner, a description and periodic review of its contents.

Types of role

Role typeDescribesExample
Birthright roleAccess everyone in a population getsEmail, intranet, HR self-service for all employees
Business roleAccess a job function needs across systems"Accounts Payable Clerk"
Technical / application roleA bundle of permissions in one system"ERP AP Invoice Entry"
Privileged roleAdministrative access, usually granted just in time"Database Administrator – Production"

Business roles contain technical roles. Keep privileged roles separate and time-bound. See the JIT Access and Zero Standing Privilege Guide.

Scoping a role programme

Role projects fail more often from poor scoping than from poor analytics. Decide up front which populations and applications are in scope, and what the programme is meant to improve: faster provisioning, cleaner access reviews, fewer segregation of duties conflicts, or evidence for an audit.

  • Start with a bounded population: pick one or two functions with stable job codes and clear processes, such as finance operations or customer support, rather than the whole workforce.
  • Choose applications by risk and volume: include systems where over-privilege matters most (finance, source code, production infrastructure) and systems where requests are most frequent.
  • Agree the source of truth for job data: role mining depends on trustworthy HR attributes. If job codes are inconsistent, fix that first or the clusters will reflect organisational history rather than real work.
  • Set an exit condition: define what "good enough" coverage looks like before mining starts, so the project does not drift towards total coverage.

Top-down and bottom-up design

  • Top-down: start from the organisation's job functions and processes, and define what each needs. Aligns with the business but is slow and can miss real-world needs.
  • Bottom-up (role mining): analyse existing entitlements to find groups of access commonly held together. Fast, but reproduces existing over-privilege.
  • Hybrid: mine candidate roles, then validate and clean them with business and application owners. This is the most practical approach.

Role design principles

  • One purpose per role: a role should answer the question "what does this job need to do?" in a single sentence. If the description needs "and" several times, split it.
  • Build business roles from technical roles: application owners define technical roles once, and business roles reference them. This keeps changes local: when an application changes, only its technical roles change.
  • Separate duties by design: create roles so that steps in a sensitive process, such as raising and approving a payment, fall in different roles. Do not rely on detecting the conflict afterwards.
  • Keep privileged access out of business roles: administrative rights belong in separate, time-bound roles, with approval and logging.
  • Write for the approver: names and descriptions should be understandable by a manager who has to approve or certify the role, not only by the engineer who built it.
  • Use attributes for variation: where the same job differs only by region, cost centre or business unit, express that as a parameter or a rule rather than another role.

Role mining in practice

  1. Prepare data: collect entitlements from key applications and HR attributes (job code, department, location). Clean up leavers and obvious orphaned access first.
  2. Cluster: group users by shared entitlements and by HR attributes; identify entitlements held by, say, 80–90% of people in a job code.
  3. Propose candidate roles: the common core becomes a role; the rest stays as requestable access.
  4. Validate: business and application owners confirm or trim each role; remove entitlements that are common but unnecessary.
  5. Check SoD: ensure no role contains conflicting permissions. See the Segregation of Duties Guide.
  6. Pilot and roll out: assign roles to a pilot group, compare against current access and handle exceptions.

Worked example: accounts payable

Consider a finance team whose members all hold the job code for accounts payable clerk. Mining the entitlements across the ERP, the banking portal and the document store shows a clear pattern, plus several outliers.

  1. Common core: nearly every clerk can view suppliers, enter invoices and view payment status. These become the technical role "ERP AP Invoice Entry" and the business role "Accounts Payable Clerk".
  2. Outliers worth investigating: a few clerks can also approve payments or edit supplier bank details. These are not part of the core. They are either historical access that was never removed or a separate duty that needs its own role and approval.
  3. Conflict found: the combination of entering invoices and releasing payments appears in a small number of accounts. The SoD check rejects it from the candidate role, and the owners decide whether each person keeps one side or the other.
  4. Result: a lean business role, a separate requestable role for payment approval with a manager approval step, and a clean-up list of access to remove.

The value of the exercise is as much in the access removed and the conflicts exposed as in the role created.

Avoiding role explosion

  • Do not create a role for every exception; use requests or attribute-based rules instead. See the Authorisation Models Guide.
  • Parameterise roles with attributes (for example, region) rather than duplicating them per region.
  • Set naming standards and require descriptions in business language.
  • Retire roles with no members or unchanged for long periods without review.
  • Track metrics: number of roles, members per role, percentage of access granted by roles versus requests.

Maintaining roles

  • Assign a role owner accountable for contents and membership rules.
  • Review role definitions periodically, separately from user access reviews. See the Access Reviews Guide.
  • Monitor usage: remove entitlements from roles if most members never use them.
  • Version role changes and test for SoD impact before publishing.

Roles and ownership

Roles decay when nobody is accountable for them. Name the people involved before the first role is published.

Role in the programmeResponsibility
Business role ownerApproves the contents of a business role and the rules for who receives it; answers questions during reviews
Application ownerDefines and maintains technical roles, and confirms that permissions match the real function of the system
IAM or IGA teamRuns mining, maintains the role catalogue, enforces naming and lifecycle standards, and reports metrics
HR or data ownerKeeps job codes, departments and employment status accurate, since role assignment depends on them
Risk and complianceDefines SoD rules and sensitive-access policy, and challenges roles that carry material risk
Workload or platform ownerOwns roles and policies for service accounts and automation, see the section on non-human identities that follows

Roles for non-human identities

  • Do not reuse human business roles for service accounts or AI agents.
  • Define workload-specific roles or policies, granted per application and environment.
  • Use permissions-used analysis in cloud platforms to right-size NHI roles.
  • For AI agents, keep roles narrow and pair them with task-scoped access. See the AI Agent Authorisation Guide.

Common failure patterns

  • Mining without cleaning: leavers, test accounts and long-forgotten access distort the clusters, and the role then encodes the mess.
  • Treating mined output as final: a role that exists because many people hold the same access is not proof that the access is needed.
  • No owner after go-live: roles are created by a project team and then left to drift as applications and jobs change.
  • Roles that mirror the organisation chart: a role per team or per manager multiplies roles without describing work.
  • Copying human roles to workloads: service accounts inherit broad human access, which is hard to review and easy to abuse.
  • Ignoring movers: people who change jobs accumulate the roles of each previous position unless the mover process removes the old ones. See the Joiner-Mover-Leaver Guide.
  • No exceptions route: if requesting something outside a role is slow, people ask for a new role, and the catalogue grows.

Metrics

Choose a small set of measures that show whether the role model is helping, and review them with the same regularity as access review results.

  • Coverage: the share of access grants delivered through roles compared with individual requests, for the in-scope populations.
  • Role-to-user ratio: how many roles exist relative to the people they serve, tracked over time. A rising ratio signals role explosion.
  • Unused roles and entitlements: roles with no members, and entitlements inside roles that most members never exercise.
  • Review quality: how often certifiers revoke access during reviews, and how long reviews take. Meaningful roles should make reviews faster and more decisive.
  • SoD conflicts: open conflicts, and the time taken to resolve them.
  • Time to provision: the elapsed time between a joiner or mover event and the person having the access they need.
  • Role ownership: the share of roles with a named, current owner and a review date in the past year.

Rolling out and migrating

  1. Run roles alongside existing access: assign roles first without removing anything, and compare each person's current access with what their role provides.
  2. Review the differences with managers: access beyond the role is either justified and requested separately, or removed. Access in the role that the person lacks is usually accepted.
  3. Remove in waves: take away redundant access gradually, starting with the highest-risk systems, and keep a quick way to restore access that turns out to be needed.
  4. Connect the lifecycle: make role assignment automatic from HR events so that joiners receive the role, movers lose the old one and leavers lose everything.
  5. Retire the legacy: once roles are trusted, disable direct assignment for the covered applications so that the old pattern does not return.
  6. Communicate: tell users what is changing and how to ask for access outside their role.

Mapping to standards

PracticeWhere it is supported
Role-based access with defined permissionsThe NIST RBAC model describes core roles, hierarchies and constraints such as separation of duty
Least privilege and separation of dutiesThe access control family of NIST SP 800-53 covers account management, separation of duties and least privilege
Access rights provisioning and reviewThe access control and identity management controls in ISO/IEC 27001 Annex A expect assigned rights to be approved, reviewed and removed
Variation by attributeNIST SP 800-162 describes attribute-based rules as a complement to roles

Role catalogues, owner approvals and review records also give auditors the evidence they ask for when testing access controls.

Practitioner checklist

  • Define a layered role model: birthright, business, technical and privileged.
  • Clean data before mining; use hybrid mining with business validation.
  • Target the common core of access, not full coverage.
  • Check every role for SoD conflicts.
  • Give every role an owner, description and review schedule.
  • Monitor role usage and retire unused roles and entitlements.
  • Design separate, narrow roles for NHIs and AI agents.
  • Scope a bounded first population and agree an exit condition for coverage.
  • Run roles alongside existing access before removing anything, and automate assignment from HR events.

Standards and references

Related NHI Mgmt Group resources: IAM and IGA Basics · Joiner-Mover-Leaver Guide · IGA Buyer's Guide · Authorisation Models Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.