OBLYTECH Logo
OBLYTECH Logo

Configure a scripted REST API to require an ACL

To configure a scripted REST API to require an ACL, set its Default ACLs to appropriate REST_Endpoint ACLs. For an individual resource, enable Requires authentication and Requires ACL authorization, then select its ACLs. A resource selection replaces the parent ACL selection; leaving the resource ACL field empty retains the parent selection.

Decide whether the API or a resource needs the rule

Start with the access decision: should the same endpoint permission apply throughout the API, or does one resource need a different audience? API resources inherit security settings from their parent by default. A resource can define an exception, so reviewing the API record alone does not establish the effective configuration of a particular endpoint.

For example, suppose an integration has a general lookup resource and a separate resource intended for a restricted group. Treat that as a design decision before changing fields. Record which resource should inherit the API selection and which needs an explicit selection. This gives the person reviewing the change a concrete expectation to compare with the saved configuration.

The distinction matters when tightening an existing API. Adding a restrictive ACL to the parent does not replace ACLs explicitly selected on a resource. That resource has its own selection. Conversely, clearing a resource ACL field returns it to the parent ACL selection; it does not, by itself, describe the resource’s authentication setting.

If the resource inventory is unclear, begin with scripted REST API resources and identify the endpoint you intend to change. Keep the scope narrow enough that the expected callers and access outcomes can be named before editing.

Configure a scripted REST API to require an ACL

The role required to configure the API-level ACL selection is web_service_admin. Navigate to All > System Web Services > Scripted REST APIs and select the intended API. Check its identity against your change record before making the selection, especially where similarly named APIs serve different integrations.

  1. Find the Default ACLs field on the selected API.
  2. Select one or more ACLs appropriate for the API’s intended audience.
  3. Check that the selected records have Type set to REST_Endpoint.
  4. Click Update to save the API configuration.

A requesting user needs to satisfy at least one ACL in the API’s selected set. The API selection does not require that user to satisfy all of them. This makes the composition of the set important: adding another ACL can introduce another qualifying route, rather than adding a condition that all callers must meet.

Before adding several records, write down why each belongs in the set. If the requirement describes an intersection of permissions, do not assume that selecting several Default ACLs expresses that intersection. Review the intended access decision against the at-least-one behavior before treating the configuration as complete.

Use building and securing scripted REST APIs when the ACL decision is part of a wider API design review. Keep this change focused on which callers should qualify for the selected endpoint permissions.

Override the parent ACL selection on a resource

The role required for the resource configuration procedure is web_service_admin or admin. From the selected API, use the Resources related list to open the intended resource. Work on the resource record itself, because the exception belongs to that endpoint rather than to the API’s default selection.

  1. Open the resource’s Security tab.
  2. Select Requires authentication.
  3. Select Requires ACL authorization.
  4. In the ACL field, choose the ACL records intended for this resource.
  5. Verify that the selected ACL records have Type set to REST_Endpoint.

A populated resource ACL field overrides the ACLs selected on the parent web service. Do not treat the two lists as a combined permission list. For an authenticated caller, the selected REST_Endpoint ACL roles determine eligibility for access to the resource. Review those roles against the intended caller population before testing.

When the resource should use the parent selection, leave its ACL field empty. Make that choice deliberately and record it as inheritance. A blank field can otherwise look like unfinished configuration to the next administrator, even though it has a defined meaning.

Review the labels and saved state on your instance and release before applying the change. Capture the parent selection, the resource selection, and both resource checkboxes together so that a reviewer can reconstruct the decision without relying on a screenshot of one isolated field.

For help planning this work, see ServiceNow implementation.

Keep authentication and ACL authorization aligned

The resource ACL procedure checks ACLs for authenticated users. Requires authentication must therefore be selected when requiring an ACL on the resource. Treat authentication as the prerequisite for this configuration, rather than assuming that selecting an ACL independently establishes the same protection.

Clearing Requires authentication makes the resource public and permits requests without credentials, including when the parent REST service requires an ACL. That is a consequential resource-level exception. Review it as an explicit access decision instead of using it as a quick workaround for a caller that cannot connect.

For a restricted resource, review the two checkboxes alongside the ACL field. A selected ACL name is insufficient evidence if the authentication prerequisite is missing. Likewise, an authenticated request is insufficient evidence that the caller belongs to the intended audience. The test must distinguish a known identity from an identity that qualifies under the endpoint rule.

Keep the caller’s identity visible in test notes. If two requests use different accounts, record that difference before comparing their results. Otherwise, a configuration review can mistake a change of caller for a change in endpoint behavior and reach the wrong conclusion about whether the ACL selection worked.

Validate the saved access decision with distinct callers

Build a small test matrix before testing. Include a caller expected to qualify, an authenticated caller expected to lack the required access, and a request without credentials. These are recommended validation cases: they separate successful authentication, endpoint authorization, and the public-access decision without requiring a large test suite.

  • Qualifying caller: confirm that the intended integration identity can use the resource under the selected rule.
  • Nonqualifying authenticated caller: confirm that a different identity does not obtain the same access merely by authenticating.
  • Unauthenticated request: check that the resource’s observed behavior matches the intended authentication requirement.
  • Inherited sibling: where relevant, check a resource intended to retain the parent’s ACL selection.

Keep the requested resource and operation consistent while comparing callers. Changing the endpoint and the identity together makes a failed test difficult to interpret. Record the expected result before sending the request, then capture the actual result and the saved security configuration that produced it.

If the caller is implemented in server-side integration code, RESTMessageV2 and SOAP message scripting APIs covers the adjacent calling context. For this validation, the central question remains whether the actual caller meets the selected resource access decision.

Investigate failures without broadening access blindly

When access differs from the expected result, reopen the exact resource first. Check whether its ACL field is populated or empty, then compare that state with the intended inheritance decision. An unexpected override can explain why editing the parent’s defaults did not produce the expected endpoint result.

Next, inspect the selected ACL records’ Type and the roles associated with the intended caller. Keep configuration permissions separate from calling permissions: the role used to administer this setting is not a substitute for reviewing the roles defined in the selected REST_Endpoint ACL.

Requests also respect platform ACLs, and the requesting user must meet applicable table ACL requirements to access instance data. Passing an endpoint rule therefore does not establish access to the data behind it. Separate the endpoint permission investigation from the data-access investigation before changing either layer.

Preserve the original selections in the change record. If testing fails, use that record to explain what changed and why. Adding more ACLs or removing authentication without revisiting the requirement can obscure the cause and leave a broader audience than the resource owner intended.

Questions for ACL change reviews

What should a handoff to another administrator contain?

Include the API identity, resource identity, intended audience, previous and proposed selections, test identities, and observed outcomes. Add the reason for an exception so that a future reviewer can decide whether it still belongs there.

How should a team choose its first test account?

Start with the identity the integration is intended to use. Establish its expected access before adding comparison accounts. This anchors the review in the requirement that prompted the change and prevents a convenient administrator account from becoming the acceptance criterion.

What if the required audience has not been agreed?

Pause the configuration decision and name who should qualify for the resource. An ACL selection cannot resolve an undefined business audience. Translate that audience into an access requirement before choosing records or interpreting test results.

What evidence makes a retest meaningful?

Record what changed since the previous attempt, which identity sent the request, and whether the same resource was requested. A retest is easier to assess when one deliberate configuration change explains the difference between the two outcomes.

Which export and API routes need their own authentication and permission tests beyond field ACLs?

Beyond field ACLs, these routes need their own authentication and permission tests: export processors such as CSV and PDF, list and report exports, analytics, attachments, REST and SOAP interfaces, and inbound query conditions. Each route can enforce access differently, so a passing field check does not show that any of them is protected.

Why a field ACL does not cover every route

A field ACL decides whether a user can read a field on a form or in a list. An export or API route asks which values leave the instance, in what format, and for whom. Protection on one export format tells you little about the API or an attachment download.

Build the route inventory from the data

Start from where the data travels, not from the navigation menu. The routes that are easy to miss are:

  • System and export processors that produce CSV or PDF output, including their destinations
  • Reports and analytics views, including scheduled ones
  • REST and SOAP interfaces
  • Attachments downloaded outside the record form
  • Inbound query conditions that filter on fields

Test every route with the same identities

Use one set of identities across all routes so the results can be compared. Keep the record and the request the same while only the identity changes.

  1. An employee who holds the business role the data is meant for.
  2. An ordinary employee who does not hold that role.
  3. An external or guest user, where such accounts can sign in.
  4. The integration identity the export or API is meant to serve.
  5. An unauthenticated request to each REST and SOAP interface.

Compare what came back with the result you expected for each route. The common failure here is a route that returns the same rows to an ordinary employee as to a role holder.

Treat inbound query conditions as a separate control

As of November 2026, the platform includes a hardening control that checks access to fields used in inbound query conditions, and that control is separate from field-read ACL enforcement. Confirm it is enabled on your instance, then run a condition against a restricted field with each identity and compare the results. A field ACL that blocks reading does not by itself show that filtering is blocked.

What to ask the team that runs the instance for

Ask for a route matrix, not a summary, with one row per route showing the authentication required, the roles or ACLs checked, the identities tested, the observed result and the date. Ask directly whether any export processor is public, and whether it is set as non-public.

Retest after changes that touch these routes

Run the matrix again after an upgrade, a clone, a new integration or a change to an export processor. Keep the matrix rows unchanged between runs.