ServiceNow restricts basic authentication for API users

From the Brazil release, ServiceNow restricts which accounts may still use basic authentication, so user name and password, against the API. An integration between an HR system and ServiceNow that updates users or puts onboarding requests in the service catalog with an API user and password stops once enforcement starts, unless that account is on the list or the integration already uses OAuth.

ServiceNow describes this on Basic authentication restriction and adds: "Starting with the Brazil release, migrate your integrations to OAuth 2.0."

How the restriction works

There are two phases.

  • Tracking. ServiceNow records which accounts use basic authentication, but blocks nothing yet.
  • Enforcing. Basic authentication is blocked, except for accounts on the list.

Once enforcement starts, an account may still use basic authentication if it is a web service access only account, if it has the role snc_basic_auth_api_access, or if it sends a valid MFA one-time password. An integration cannot enter an MFA code, so for an HR integration the first two remain.

The administrator chooses per account in the table of identified users:

  • Maintain current login. The account gets the exception role and keeps API and UI access.
  • Revoke Basic Auth API login. The API stops working, UI login still works.
  • Convert to web service access only account. The API keeps working, UI login stops.
  • Apply default from system property. The account follows glide.authenticate.basic_auth.restriction.default_decision.

When enforcement begins is set per instance in the enforcement schedule job. ServiceNow asks administrators to check that start date and adjust it if needed.

What this means for an HR integration

The API user of an HR integration never needs to log in to the UI. If the administrator picks revoke by mistake, or the default is set that way, the integration gets an error when enforcement starts. New employees then no longer appear as users in ServiceNow, and no onboarding request is created.

Converting to web service access only keeps the integration working. It is an intermediate step. ServiceNow advises OAuth 2.0 for integrations.

What to do before enforcement starts

  1. Look up the enforcement schedule job and note the start date on your instance.
  2. Review the table of identified users and find the API user of the HR integration.
  3. Convert that account to web service access only, so the integration keeps working.
  4. Plan the move of the integration to OAuth 2.0, with its own client and the same roles as now.
  5. After the move, test a new hire, a transfer and a leaver.

How KoppelHet builds this

KoppelHet builds ServiceNow integrations on OAuth 2.0, with an API user that only has the roles for the user tables and the service catalog. If an existing integration still uses basic authentication, we first convert the account to web service access only and then move the integration to OAuth. We build this for, among others, AFAS with ServiceNow, Workday with ServiceNow, YouForce with ServiceNow and HiBob with ServiceNow.

Read more on the hub for ServiceNow or about HR to ITSM.

Which systems do you want to connect?

Tell us which systems you use and what should happen automatically. Together we define the smallest working solution, with a clear design and a quote before building.