Already a NinjaOne customer? Log in to view more guides and the latest updates.

NinjaOne Integration with ServiceNow: Troubleshooting Integration Failure

Issue

I configured the application registries and the user as described in NinjaOne Integrations: Getting Started With ServiceNow, but the integration is not working.

Environment

  • NinjaOne Integrations
  • ServiceNow

Cause

There are a couple of possibilities explaining why this issue occurs. We will outline all known remedies in the following Resolution section. If the following resolutions do not resolve the issue, contact NinjaOne Support.

First, you should verify that you meet all allowlisting requirements. Refer to NinjaOne Global Allowlist (Whitelist) Information for more information.

Resolution

ServiceNow has introduced a new application manager to its platform. The following instructions will implement examples for both the latest and classic application managers.

Issues Related to REST API Access Policies

Creating the API user and application registry in ServiceNow allows you to enable the ServiceNow application in NinjaOne. To determine whether the connection issues are related to the REST API plugin, first verify that the REST API access policy is active. To do so, perform the following steps: 

  1. Navigate to AllSystem ApplicationsAll Available ApplicationsAll.
servicenow_all available applications_menu.png
Figure 1: Navigate to the All Available Applications page
  1. Use the search filter to find the REST API Access Policy plugin. You can search for it by the name REST API Access Policy Plugin or plugin ID com.glide.rest.policy
  2. If you have not installed the plugin, click it to open the management page and then click Install. The following figure shows an example of where you can find the button on the application manager page. 
servicenow_install plugin.png
Figure 2: Install a plugin for ServiceNow (new app manager)
servicenow_install plugin_old.png
Figure 3: Install a plugin for ServiceNow (classic app manager)
  1. Verify the plugin Status displays Active. If it is Inactive, this indicates that the plugin is not active. Click Activate/Repair or Repair to resolve the issue.
servicenow plugin_installed_new.png
Figure 4: Repair a plugin for ServiceNow (new app manager)
servicenow plugin_activate repair.png
Figure 5: Activate/repair a plugin for ServiceNow (classic app manager)
  1. Once the plugin is active, you must configure it. Navigate to All → System Web ServicesAPI Access PoliciesInbound Authentication Profile.
  2. Click New.
servicenow_new inbound auth profile.png
Figure 6: Create a new inbound authentication profile in ServiceNow
  1. Select Create standard http authentication profiles.
  2. Use the following table to complete the applicable fields. 
FieldData
NameEnter Ninja OAuth.
DescriptionEnter Authentication profile for NinjaOne OAuth.
ActiveSelect this checkbox.
TypeEnter OAuth.
OAuth EntityClick the magnifying glass (search) button and select the entity that you registry in the Application Registry in Service Now. For instructions to create the Application Registry, refer to NinjaOne and ServiceNow: Enable the Integration.
  1. Click Submit.
  2. Double-click Insert a new row in the Authentication Policy tab.
  3. Click the magnifying glass (search) button.
  4. Select Allow Access Policy.
  5. Click the green check mark to save the changes.
  6. Click Update.

Check Ninja Application OAuth Credentials in ServiceNow

Insufficient or incorrect OAuth credentials may cause the integration to fail. This section explains how to check the credentials and change them if needed.

  1. Log in to an active instance in ServiceNow with an administrator role.
  2. Navigate to All System OAuth Application Registry.
servicenow_app registry.png
Figure 6: Navigate to the Application Registry page
  1. Search for NinjaOne OAuth or NinjaOne OAuth Client, as this is the name recommended for use in our NinjaOne and ServiceNow: Enable the Integration guide. Open the record to find the Client ID and Client Secret
  2. Click the lock button to show the Client Secret
servicenow_client ID and secret.png
Figure 7: Obtain the client ID and secret data from ServiceNow
  1. To obtain the data for Instance Name when you enable the ServiceNow integration in NinjaOne, find the value in the URL bar between https:// and service-now.com
For example, if your ServiceNow portal URL is https://ven1234.service-now.com, then your Instance Name is ven1234.
  1. Log in to NinjaOne as a system administrator and enable the ServiceNow app. Enter the applicable data as indicated.
servicenow_enable integration_connection settings.png
Figure 8: Enable the ServiceNow integration in NinjaOne

Additional Resources

Our Integrations and Third-Party Apps: Resource Catalog.

FAQ

Next Steps