Skip to main content

About the ServiceNow Integration

The ServiceNow integration pushes Apple device inventory from Iru Endpoint to ServiceNow in real time so your ServiceNow records stay current. If your ServiceNow tenant is licensed for Software Asset Management Professional (SAM Pro), you can also send application installation and usage data nightly.

How It Works

The integration connects Iru Endpoint to your ServiceNow instance over OAuth 2.0 with a dedicated service account. Authentication: OAuth 2.0 with a service account in ServiceNow. Data sync: Iru Endpoint discovers managed Apple devices and syncs fields such as serial number, model, OS version, and assigned user to ServiceNow. With SAM Pro, you can also send application inventory and usage data nightly.

Setup Overview

Follow these steps at a glance.
1

Install ServiceNow App

Install the Kandji ServiceNow app in the ServiceNow integration hub.
2

Configure OAuth Client

Configure an OAuth client app so Iru Endpoint can call the ServiceNow Import Set API.
3

Create ServiceNow User

Create a ServiceNow user account that can access the ServiceNow API.
4

Set up the integration in Iru Endpoint

In Iru Endpoint, finish the ServiceNow integration using the OAuth app and service account you created.
When setup is complete, Iru Endpoint starts pushing device asset data to ServiceNow.
The assigned user from Iru Endpoint must already exist in ServiceNow for that user to appear on the computer record.

High-Level Data Flow

When a device enrolls in Iru Endpoint or its record changes, the integration does the following:
1

Detect Changes

Iru Endpoint detects changes to device inventory. If you turned on SAM Pro app sync in Iru Endpoint, app inventory and usage are prepared nightly.
2

Push to Staging Tables

Iru Endpoint pushes these changes to ServiceNow staging tables via the ServiceNow Import Set API.
3

Transform Data

For device data, ServiceNow runs a transform map to map staging columns to target tables. Application data uses an ETL definition with the Robust Transform Engine.
4

Update Records

ServiceNow then creates or updates device and MDM records, and can also update software install and usage records when SAM Pro data sync is enabled.

ServiceNow Tables

The following tables are used in the Iru Endpoint integration with ServiceNow.
Table Description
cmdb_ci_computerBuilt-in ServiceNow table with hardware details for Mac, iPhone, iPad, and tvOS devices.
cmdb_sam_sw_installServiceNow SAM Pro table used to record software installs when app inventory and usage sync is enabled in Iru Endpoint.
samp_sw_usageServiceNow SAM Pro usage table populated by a nightly usage-publisher job in ServiceNow.
x_kandj_kandji_mdmCustom table built by Iru Endpoint to store additional MDM-related data about device assets.
x_kandj_kandji_kandji_import_set_computerImport set staging table used to stage device asset information before it is pushed to the cmdb_ci_computer table.
x_kandj_kandji_kandji_import_set_mdmImport set staging table used to stage MDM-related device asset information before it is pushed to the x_kandj_kandji_mdm table.
x_kandj_kandji_kandji_import_set_appsImport set staging table used to stage application inventory and usage information before RTE/ETL processing.

Iru Endpoint Device Attributes

Iru Endpoint sends the device asset fields below. Additional fields may be added over time.

Table: cmdb_ci_computer

Iru Endpoint ServiceNow Description
assigned_userassigned_toUser assigned to the device asset
device_capacitydisk_spaceTotal storage capacity
device_namenameName of the device
Discovery source (not shown in Iru)discovery_sourceConstant value set to “Kandji”
model_namemodelDevice model name
os_typeosOperating system name (for example, macOS, iOS, iPadOS, or tvOS)
os_versionos_versionOperating system version
serial_numberserial_numberDevice serial number; also coalesces to the computer table record in ServiceNow
manufacturermanufacturerConstant value set to “Apple”

Table: x_kandj_kandji_mdm

Iru Endpoint ServiceNow Description
device_idkandji_device_idIru Endpoint device ID
blueprint_idkandji_blueprint_idIru Endpoint blueprint ID; also coalesces to the MDM table record in ServiceNow.
serial_numbercomputerReferences the CI computer record in ServiceNow.
Discovery source (not shown in Iru)discovery_sourceConstant value set to “Kandji”

Table: cmdb_sam_sw_install

Iru Endpoint (Prism) ServiceNow Description
App ID (not shown in Iru)instance_keyA unique key used to identify a piece of software on a specific device
namenameThe name of the app
developer_namepublisherThe developer of the software
versionversionVersion of the software
pathinstall_locationInstall path on the device
serial_numberinstalled_onReference to the computer CI record
last_openedlast_usedThe date the software was last used
is_removed (removed apps are not shown in Iru)activeActive install on cmdb_sam_sw_install: true while the app is on the device; false when Iru reports removal. Removed apps still sync with active = false so ServiceNow keeps the install row for history (see Application inventory).
Discovery source (not shown in Iru)discovery_sourceConstant value set to “Kandji”

Table: samp_sw_usage

ServiceNow Description
configuration_itemReference to the computer CI record
norm_productThe normalized record of the app from ServiceNow
reclamation_type'last_used'. Iru populates last_used entries.
last_used_timeDate and time the software was last used. Iru sends dates only here to avoid extra custom tables in ServiceNow.

Application Inventory

When application inventory is enabled, Iru Endpoint still sends removed apps to ServiceNow with active set to false. ServiceNow keeps those install rows for history instead of deleting them when the app leaves the device.

Considerations

Assigned users in ServiceNow

For the computer record in ServiceNow to show the user assigned in Iru Endpoint, that person must already exist in ServiceNow.

Device inventory sync

Device inventory syncs in real time. App inventory and usage data syncs nightly when that option is enabled.

Application inventory

SAM Pro must be licensed in ServiceNow, and you must enable the option in Iru Endpoint integration settings. Removed apps still sync with active = false so ServiceNow keeps historical install rows instead of deleting them.

Tables in ServiceNow

The integration writes to built-in ServiceNow tables and custom Kandji tables so CMDB and MDM views stay complete.

Import Set API

Data moves through ServiceNow’s Import Set API and transform flows.

ServiceNow integration: ServiceNow configuration

Install the Kandji ServiceNow app, create an OAuth client and service account, and verify discovery source in ServiceNow.

ServiceNow integration: Iru Endpoint configuration

Connect Iru Endpoint to your tenant, enter OAuth and service account credentials, and optionally enable nightly app inventory and usage for SAM Pro.