Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› How do you create a custom role in…
Governance, Ownership & Risk

How do you create a custom role in Microsoft Entra ID?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Governance, Ownership & Risk

You create a custom role by defining a role that contains only the actions an administrator or operator needs, rather than assigning a built-in role with extra privilege. Start from the exact tasks to be performed, then test that the role allows those tasks and nothing broader. Keep role scope narrow and review assignments regularly for drift.

What a custom role in Microsoft Entra ID actually is

A custom role is the cleanest way to give just the administrative actions a person or process needs, without inheriting broad built-in permissions. In practice, that means translating a job into exact allowed actions, then constraining where the role can be assigned so it does not become a hidden privilege bundle.

The main design choice is not the role name, but the permission set behind it. A well-built custom role should reflect the smallest practical task boundary, such as managing one app class, one directory function, or one operational workflow, while avoiding unrelated write, read, or consent capabilities that would expand blast radius.

Because role definitions can look precise while still being too permissive, the real test is operational: can the intended task be completed, and can the role avoid granting any broader administrative path? That is why role design should be driven by the task sequence first, then validated against expected use cases and edge cases before it is rolled out.

How to define the permissions without over-scoping

Start by listing the exact actions the role must perform, then map those actions to the least powerful Entra ID role permissions that still work. This is where many implementations go wrong, because teams start from a familiar built-in role and trim little by little, rather than building from the work itself.

Use scope as a second control, not a substitute for good role design. Even a correctly scoped custom role can become risky if it applies too broadly across tenants, subscriptions, administrative units, or applications, so the permission set and assignment scope should be reviewed together.

When the role is meant for a recurring operator function, keep the permission model simple enough that it can be audited later without guesswork. Roles that are hard to explain are often hard to govern, and that usually means the custom definition has become more complex than the task it was supposed to support.

For teams hardening Entra ID administration, Active Directory and Entra ID Hardening Guide is a useful reference point for keeping privileged access narrow and reviewable.

How to validate and maintain the role after creation

Validation should be treated as part of creation, not an afterthought. After you define the role, test the exact operator journey, confirm the role can do the intended task end to end, and then verify that obvious adjacent actions fail as expected.

Once the role is in production, recheck assignments regularly for drift. Over time, custom roles often accumulate exceptions, temporary elevation, and copy-paste assignments from prior admins, which slowly defeats the original least-privilege design.

If the role is tied to privileged administrative work, connect it to a review process that checks both the definition and the assignments. A role can be technically correct and still become unsafe if old assignments remain active after the work changes or the owner changes.

Where privileged workflows are part of the design, Privileged Identity Management (PIM) Guide helps frame activation, approval, and review as part of the operating model rather than an optional add-on.

Risk and Threat Considerations

Custom roles reduce privilege only when they are truly narrower than the built-in alternative. If the permission set is over-scoped, misassigned, or copied forward without review, it can quietly create a standing administrative path that is harder to spot than an obvious high-privilege role.

Failure mechanism: Broad actions, broad scope, or stale assignments let a role become a hidden privilege escalation route, especially when it is reused across teams, environments, or automation.

Impact: A compromised account or overtrusted operator can perform administrative actions beyond the original business need, increasing the chance of tenant-wide misconfiguration, consent abuse, or unauthorized change.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, CIS Controls v8 and OWASP ASVS set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeCustom roles are built to limit admin actions to the minimum needed.
IA-5 — Authenticator ManagementRole governance depends on controlling credentials used by admins and operators.
Recommendation — Apply AC-6 to restrict the role to only the required Entra ID actions. Use IA-5 to manage the credentials that can assume or administer the custom role.
ISO/IEC 27001:2022A.5.15 — Access controlCustom roles are an access control mechanism that defines who can do what.
Recommendation — Define and review the custom role under A.5.15 access control requirements.
CIS Controls v8CIS-6 — Access Control ManagementCustom role creation and review directly affect privileged access assignment.
Recommendation — Use CIS-6 to govern role assignment, review and privilege minimization.
OWASP ASVSV8 — AuthorizationThe role is an authorization boundary that must enforce least privilege.
Recommendation — Use V8 to verify the role grants only the intended authorization paths.

Practitioner Guidance

What to verify: Before approving a custom role, confirm the role can complete the intended operational task while failing any adjacent action that would expand privilege. If you cannot clearly demonstrate the negative case, the role is probably too broad.

Common mistake: Do not start from a built-in role and trim it mechanically. That approach usually preserves inherited privilege patterns that have nothing to do with the actual task and makes later review harder.

What good looks like: The role has a short, explainable permission set, a defined scope, and a clear owner. Review cadence should catch unused assignments, temporary exceptions, and any drift from the original task boundary before they become normal.

Practitioner takeaway: In Entra ID, the quality of a custom role is measured less by its name than by whether it cleanly separates the required task from every broader administrative action.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org