Deploying the ServiceNow Adapter
To deploy the ServiceNow Adapter, Perform the following steps:
1. Create ServiceNow credentials with the appropriate permissions
Axonius supports two authentication methods for connecting to ServiceNow:
Important: ServiceNow basic authentication restriction. ServiceNow is rolling out a security update (ServiceNow KB3025707) that restricts username/password API access for accounts that can also log in to the ServiceNow UI. After your instance's enforcement date, a non-qualifying account gets HTTP 401 and the adapter stops fetching, even though the credentials still work in the UI.
To keep using Username/Password, the Axonius account must either be set to Web service access only (recommended) or have the
snc_basic_auth_api_accessrole. Alternatively, use OAuth ID/Secret with the client-credentials setup below. It doesn't use basic authentication, so the restriction doesn't affect it. Leave User Name, Password and OAuth Refresh Token empty on the Axonius connection (see step 2).To check your instance, go to Basic Auth Restriction → Basic Auth User Exceptions. The enforcement date is in
glide.authenticate.basic_auth.restriction.enforcement_date.
Username/Password
-
Navigate to User Administration → Users and click New.
- User ID:
axonius_integration - Identity type:
Machine. On Zurich and later, this also selects Web service access only. On earlier releases, select it directly. The account then works for API access only and can't log in to the UI.

- User ID:
-
Click Submit.
-
Open the user again, click Set Password, and set a strong password.
-
Make sure Password needs reset is cleared, then click Update.
-
Click Edit in the Roles section to modify the user’s assigned roles.

-
Assign the required roles for Cyber & Software Assets fetching.
- Refer to Required Permissions for the complete list.
- If the account must keep UI login, leave Web service access only cleared and also assign
snc_basic_auth_api_access.

-
Click Save and then Update to apply the changes to the user’s settings.
Existing connections
If an existing Username/Password connection uses an account that isn't Web service access only:
- Open Basic Auth Restriction → Basic Auth User Exceptions in ServiceNow and find the Axonius account.
- Set Decision to Convert to WSAO. Use Maintain current login only if the account needs UI access.
- Optionally, click Execute decision to apply it now.
Accounts recorded during the tracking period keep access by default unless an admin changes the decision. Accounts that weren't recorded, including ones created after enforcement starts, are rejected unless they qualify as described above.
OAuth ID/Secret
1. Create Service Account User
-
Navigate to User Administration → Users and click New.
-
Configure the following fields:
- User ID:
axonius_integration_oauth - First / Last Name: e.g.
Axonius/Integration OAuth - Identity type:
Machine. On Zurich and later, this also selects Web service access only. On earlier releases, select it directly. - Password: Not needed for client credentials. If your policy requires one, set a strong random password and don't use the account for username/password logins.
- User ID:
-
Click Save
Note: The First Name and Last Name are important as the OAuth Application User field (configured later) only allows selection by name.
2. Create Custom Read-Only Role
- Navigate to User Administration → Roles and click New.
- Configure the following fields:
- Name:
x_axonius_read - Description:
Read-only access for Axonius integration
- Name:
- Click Save.
3. Configure Access Control Lists (ACLs)
- Navigate to System Security → Access Control (ACL).
- For each table listed below, create a record ACL with Operation: read:
sysevent_script_action
sys_email_filter
sys_dictionary
sys_properties
password_policy
syslog_transaction
v_plugin
sys_user
security_admin- For each ACL record:
-
Set Requires role to
x_axonius_read -
Set the script to
answer = true;Note: The
answer = true;script only takes effect whenAdvancedis ticked on the ACL. -
Click Save.
-
4. Assign Roles to Service Account
-
Navigate to User Administration → Users.
-
Open the
axonius_integration_oauthuser. -
Under the Roles tab, add:
x_axonius_read- Additional roles required for Assets fetching and Enforcement Actions. Refer to the Required Permissions documentation for the complete list of required roles.
-
Click Save.
5. Create OAuth Application Registry
- Navigate to System OAuth → Application Registry → New.
- Select New Inbound Integration Experience. This opens Machine Identity Console → Inbound integrations.
- Click New integration and select OAuth - Client credentials grant.
- Provide the following:
- Name:
Axonius - OAuth application user: Axonius Integration OAuth.
- Auth scope: Select a scope.
useraccountis the only built-in one and works, but it isn't recommended for general use. A custom scope must cover every API Axonius calls - Table, Stats, Import Set, Attachment, IRE, Service Catalog..
- Name:
- Click Save, then copy the Client ID and Client Secret to use in Axonius.
6. Enable OAuth Client Credentials System Property
Navigate to System Properties (search for sys_properties.list in the filter navigator).
-
Search for the property:
glide.oauth.inbound.client.credential.grant_type.enabled -
If the property exists:
- Open it and set Value to
true. - Click Update.
- Open it and set Value to
-
If the property doesn't exist, create it:
- Click New.
- Configure the following fields:
- Name:
glide.oauth.inbound.client.credential.grant_type.enabled - Type:
true | false - Value:
true - Application:
Global
- Name:

-
Click Submit.
If an OAuth connection fails with
server_error, access_denied … Status Code: 401, check thatglide.oauth.inbound.client.credential.grant_type.enabledexists and is true.
7. Verification
To verify the configuration:
- Confirm that the OAuth application registry shows:
- Client ID and Client Secret are generated
- OAuth Application User is set to
Axonius Integration OAuth
- Confirm that the system property
glide.oauth.inbound.client.credential.grant_type.enabledis set totrue. - Confirm that the service account has all required roles assigned.
2. Set up the ServiceNow adapter in Axonius
Create the Adapter connection in Axonius. Based on the authentication method (Username/Password or OAuth ID/Secret), fill out the specific fields, and configure optional settings.
Add a New Connection
- From the Adapters page, search for ServiceNow and select the adapter.
- Click Add Connection. The Create Connection drawer opens on the Connection Configuration tab.
- Fill in the sections below, then save the connection.
To check that Axonius can reach the source before you enter credentials, click Check Network Connectivity. For more details, see Adding a New Adapter Connection.
Environment
The instance this connection reads from.
- ServiceNow Domain (required) - The hostname or IP address of the ServiceNow server. This field format is
https://[instance].service-now.com.
-
Apigee URL - The URL of the domain that the get request is sent to for acquiring the APIgee token.
-
Resource Apigee - The resources you want the APIgee to access.
Access
How Axonius authenticates to the instance. Select one of the authentication methods.
- Authentication Method (required, default: Basic)
- User Name and Password (required) - The credentials for the account you created in the previous step, or one that has the Required Permissions. The account must be Web service access only or have the
snc_basic_auth_api_accessrole (see the note in step 1).

- OAuth Client ID and OAuth Client Secret (required) - From the OAuth Application Registry created in step 1. The connection uses the permissions of the registry's OAuth Application User.
- OAuth Refresh Token - Leave empty for the client-credentials setup. Use it only if your ServiceNow OAuth endpoint issues refresh tokens and you aren't using client credentials.
- User Name and Password - Leave empty. If set together with the OAuth Client ID and OAuth Client Secret, Axonius uses the OAuth password grant instead of client credentials.
- OAuth Custom Endpoint Path - Specify a custom endpoint path to be used instead of the default
oauth_token.do. - Enable sending OAuth requests as JSON - Enable to to send the request in JSON format instead of the standard
www-form-urlencodedformat.

-
Custom HTTP Headers - Specify custom HTTP headers to add to requests. Each header requires a Key and Value. Optionally, restrict the header to specific HTTP Methods (GET, POST, PUT, PATCH, DELETE) and a URL Pattern (regex matched against the request URL; leave empty to apply to all URLs).
-
Enable Client Side Certificate - Select to enable Axonius to send requests using the certificates uploaded to allow Mutual TLS configuration for this adapter. When you select this option, 2 more fields are displayed:
-
Client Certificate File (.pem) - Adds a client side certificate to the connection.
-
Client Private Key File (.pem) - Adds a private key to the connection (if the API/proxy requires identification).
- Click Upload File next to Client Private Key File to upload a client private key file in PEM format
- Click Upload File next to Client Certificate File to upload a public key file in PEM format
More Options
-
Verify SSL (default: enabled) - Select to verify the SSL certificate offered by the value supplied in ServiceNow Domain. For more details, see SSL Trust & CA Settings.
-
HTTPS Proxy - A proxy to use when connecting to the value supplied in ServiceNow Domain.
-
Fetch devices updated in ServiceNow in the last X hours (0: All) (Cyber Assets only, default: 0) - Enter an amount of hours to fetch only devices that were updated in ServiceNow in the last specified number of hours.
-
Fetch users updated in ServiceNow in the last X hours (0: All) (default: 0) - Enter an amount of hours to fetch only users that were updated in ServiceNow in the last specified number of hours.
-
Fetch users created in ServiceNow in the last X hours (0: All) (default: 0) - Enter an amount of hours to fetch only users that were created in ServiceNow in the last specified number of hours.
-
Advanced configuration file - Upload an advanced configuration JSON file.
-
Use specific version of API - Select the API version you want to use in the fetch: V1, V2, or latest version. You can also use the Search box that opens to type a different version and click create new to add this option.
-
Select Gateway – Select the Axonius Gateway to use when connecting adapters whose sources are only accessible by an internal network and not from the primary Axonius instance, which may be an Axonius-hosted (SaaS) instance or Customer-hosted (on-premises / private cloud). To use this option, you need to set up an Axonius Gateway.

Switching an Existing Connection from Username/Password to OAuth
- In ServiceNow, complete OAuth steps 5-7. For OAuth Application User, select the existing integration account (it already has the roles) or create a new one using OAuth steps 1–4.
- In Axonius, edit the connection: enter the OAuth Client ID and OAuth Client Secret, then clear User Name, Password and OAuth Refresh Token. Save and confirm that a fetch completes.
- Update any ServiceNow Enforcement Actions that use their own User Name and Password instead of the adapter's stored credentials.
- In ServiceNow, go to Basic Auth Restriction → Basic Auth User Exceptions and set the old account's decision to Revoke Basic Auth API login.
Note
OAuth Refresh Token: if this is filled in, Axonius uses it first, before User Name/Password or client credentials.
User Name and Password: leave empty. If they're set together with the OAuth Client ID and OAuth Client Secret, Axonius uses the OAuth password grant instead of client credentials. That needs a ServiceNow integration created with OAuth - Resource owner password credential grant.
3. (Optional) Configure Advanced Settings
Refer to ServiceNow Advanced Settings.
Updated about 1 month ago

