OBLYTECH Logo
OBLYTECH Logo

RBAC in ServiceNow: How Roles Control Access to Data

RBAC in ServiceNow combines user roles with access control rules. Roles describe the capabilities assigned to a person, directly or through groups. ACLs evaluate the requested operation against roles, conditions, and scripts. Reviewing both layers helps you explain why a user can open a record yet cannot change a protected field.

RBAC building blocks: users, groups and roles

A user account has an identity and associated roles. A user can hold several roles at once. A group is a set of users who share a purpose, and its assigned roles are inherited by members. Role records are stored in the Roles table (sys_user_role), and groups are managed under User Administration > Groups.

Roles control which functions and capabilities a person can reach in applications and modules, and they describe the kinds of activity that person can carry out. Once a role is granted to a user or a group, everyone assigned to it gains the access it brings.

In most implementations, roles are best assigned to groups rather than to individual people. A group built for a persona, such as a service desk analyst, can hold every role that persona needs. Adding a new colleague then means adding one group membership rather than repeating a dozen role grants, and reviewing access starts with a clear group purpose. Before removing access, check for direct grants and other groups that provide the same role.

For the wider topic, see instance security and access control.

Roles can contain other roles

A role can contain other roles. Any access granted to a contained role is also granted to each role that contains it. When you review what a person can do, look at the roles they hold directly and at the roles those roles contain, because the effective access is the combination.

For how these duties are split between teams, see roles, responsibilities and RACI for instance security.

Base system roles worth knowing

The platform ships with a set of roles for common jobs. A few that show the pattern:

  • itil: Open, update and close incidents, problems and changes, and read some configuration items.
  • itil_admin: Delete incidents, problems, changes and related entities, alongside itil.
  • user_admin: Administering users, groups, locations and companies.
  • catalog: Access to service catalog requests.
  • approval_admin: Viewing or changing approval requests that are not assigned to the person.
  • impersonator: Impersonating other users, though not users who hold the admin role.
  • public: Access to features without a login.
  • user: Has no functionality in the base system and grants no access to assets on the instance.

Installed applications can add roles of their own to control the features they bring.

The admin role and the granular admin roles

The admin role provides broad access to system features and data, with ACL override settings and special security restrictions affecting the final result. Because it is so broad, it is a poor fit for people who only need part of the administrator’s job.

Granular admin roles exist for exactly that case. They let you give developers or users with minor administrative tasks narrow permissions instead of the full admin role. They are separate from admin and have to be assigned independently. The available roles depend on the product and installed applications.

A practical way to use them is to start from the task. If a developer needs to maintain one area of the instance, look for the granular role for that area before reaching for admin. The audit afterwards is also easier, because the role name states the purpose.

For wider guidance, see instance security and access control best practices.

Elevated privilege: the extra step for security_admin

Some roles are marked as elevated privilege roles. A person does not hold them when they log in. They must elevate manually and accept responsibility for using the role, and the elevation lasts for the user session. A timeout or a logout removes it.

In the base system, security_admin is the elevated privilege role. It is assigned automatically to the default System Administrator user. It lets someone create and change access controls and change high security settings. Granting it requires holding the admin role and having elevated to security_admin first. Someone without security_admin cannot add users to a group that contains it.

For guidance on how access is designed, see security and access design.

How access control rules turn roles into decisions

An ACL defines a rule for access to a system object such as a table, a field, a record, a UI page or a scripted REST API. Each rule states a decision type, a rule type and operation, the object it protects, and the conditions a user must satisfy.

An object is identified by a type and a name. A table is written like incident, and a field is written as table and field together, such as incident.active.

Allow If and Deny Unless

Allow If grants access when the conditions pass. Deny Unless restricts access by explicitly denying it unless the conditions pass. When writing a new rule, it is worth deciding up front which of the two matches the intent, because a failed Deny Unless rule blocks access even when an Allow If rule would pass.

What a rule can check

A rule can combine several kinds of condition:

  • Required roles, listed in the Requires role field. Holding any one of the listed roles is enough.
  • A data condition, such as incident state not being closed.
  • A script that returns true or false.

A user must pass all conditions listed on a rule.

Operations include create, read, write, delete, execute, report_view, add_to_list and others.

Do not use a role list to express a requirement for two simultaneous roles: the list accepts any one entry. Record the intended condition separately and test a user who holds just one listed role.

Admin overrides and the nobody role

Each rule has an Admin overrides setting. When selected, users with the admin role pass the rule automatically. The nobody role takes precedence over that setting, so a rule requiring nobody blocks admins as well.

Clearing Admin overrides does not make administrators fail role checks. Use a data condition or script when administrators must satisfy an additional restriction. For the wider concept, see access control lists explained.

How the platform evaluates a request

When a session asks for an object, the platform looks for rules that match the object and the operation. Deny Unless rules are checked first. A user who fails one is refused, whatever the Allow If rules say.

Do not treat missing restrictions as a substitute for an explicit access design.

For records, the table-level rules and the field-level rules must both evaluate to true.

What the user sees when a check fails

A user who fails a table rule loses access to every field in that table. A user who passes the table rule but fails a field rule cannot access that field. A person can therefore open a record yet find one field missing, which usually points to a field-level rule rather than a table-level one.

Build an access test before changing a role

Write down the persona, table, field, operation, and expected result before editing permissions. For example, a service desk analyst may need to read an incident and update its working fields while being unable to delete it. Treat those as separate checks: an ACL protects one operation, so successful reading does not establish permission to write or delete.

  1. Choose a representative user and record their direct, group, and contained roles. Keep an account that should be denied in the test set.
  2. For ACL creation, elevate to security_admin, open System Security > Access Control (ACL), and select New. Set Type, Operation, Decision Type, and Name for the intended object.
  3. Use Requires role for the qualifying role list and Data Condition for record values. Add a Script requirement when the access decision needs logic beyond the configured conditions.
  4. Save the rule, then test permitted and denied operations against records with different condition values. Capture the result and the reason before approving the change.

Check these settings on your instance and release before applying the design. For help planning the work, see ServiceNow implementation.

Testing and debugging access

An administrator can turn on debugging for security rules, from the System Security menu under Debugging, and then impersonate another user to see which ACL rules that user passes and fails. The output shows the path of each rule, a return code where true means the rule passed, and a breakdown of the roles, conditions and scripts involved.

Start with the requested operation and the first failing table or field check. The debug output separates Roles, Condition, and Script results; follow that evidence before adding another role. A blue result indicates a cached check, while an empty gray circle means that evaluation was not needed. Keep the failing record and user in the change evidence so a reviewer can reproduce the result. For the impersonation step, see how to impersonate a user.

Questions about maintaining ServiceNow RBAC

When does a newly assigned role become effective?

A newly assigned role takes effect after the user logs in with a new session. Include that step in your support instructions so the test reflects the new assignment rather than an earlier session.

Can a custom role start without application access?

Yes. Creating the role record does not itself provide application or module access. An admin must connect it to the appropriate applications or modules, or add roles that already carry the intended access.

Where can reviewers trace changes to user roles?

Role changes are tracked in the Audit Roles table, sys_audit_role. Use that history alongside the approved access request to investigate who received a role and whether the change matched the business decision.

Does elevating to one role activate another elevated role it contains?

No. A user must explicitly elevate to the particular elevated role whose privileges they need, even when another elevated role contains it. Account for that distinction when diagnosing a security task that remains unavailable after elevation.