Installing the Kandji ServiceNow App
If the app is not installed yet, install the Kandji ServiceNow app in your ServiceNow instance. The install adds dependencies your tenant needs for the integration.Access ServiceNow Store
Go to the ServiceNow store.
Creating an OAuth App
Iru Endpoint uses a ServiceNow OAuth API client with grant type Resource Owner Password Credentials (ROPC) to get access and refresh tokens for your instance.On ServiceNow Zurich and later releases, set Scope Restriction to Broadly scoped when you create the OAuth API endpoint for external clients. If this field is set to a narrower scope, inbound API calls from Iru Endpoint can fail with errors such as OAuth client does not have unrestricted access to unscoped APIs is not allowed. For more information, see ServiceNow KB2731346.
Access ServiceNow
Using a ServiceNow admin account, log in to your ServiceNow tenant (.service-now.com).
Set Redirect URL
In the Redirect URL field, enter https://kandji.io.
Adding a Service Account
The service account user credentials are used to configure the ServiceNow integration in Iru Endpoint.Any ServiceNow user account can be used as long as it has access to web services and has the roles cmdb_read, import_transformer, and rest_api_explorer. Create a dedicated service account for this integration when possible.
Access ServiceNow
Using a ServiceNow admin account, log in to your ServiceNow tenant (.service-now.com).
Configure User Details
Enter a descriptive name for the user (for example,
kandji_rest_api_user). Copy the username to a secure location. You need it when you configure the integration in Iru Endpoint.- Optionally, enter any additional information required by your organization.
Save Password
Click Save Password. Store the password in a secure location. You enter it in Iru Endpoint when you configure the ServiceNow integration.
Add Required Roles
Add the following roles to the service account user:
- cmdb_read
- import_transformer
- rest_api_explorer
Verify Role Assignment
You should see six roles in total: three you added directly and three inherited.
Troubleshooting
Verify that Kandji is a Discovery Source
If Kandji does not show up as a Discovery Source
Run kandji_fix_script manually if Kandji does not appear as a discovery source after you install the Kandji ServiceNow app.
Kandji should now appear as a discovery source choice in ServiceNow.
Considerations
Service accounts
Prefer a dedicated account for this integration instead of reusing an interactive user, so access and changes are easier to audit.
OAuth
On Zurich and later, set Scope Restriction to Broadly scoped when you create the OAuth app (see Creating an OAuth App). Set the redirect URL to
https://kandji.io and store client credentials securely.Roles
The service account needs cmdb_read, import_transformer, and rest_api_explorer.
Discovery source
After install, confirm Kandji appears under discovery source choices for cmdb_ci in Dictionary.
Troubleshooting
If discovery source or sync looks wrong, run the kandji_fix_script fix script and confirm the service account has the three roles above.
Related Articles
ServiceNow integration: Overview
How inventory flows from Iru Endpoint to ServiceNow tables and transforms, and how SAM Pro data flows when enabled.
ServiceNow integration: Iru Endpoint configuration
Connect Iru Endpoint with your OAuth app and service account, and manage the integration after ServiceNow is ready.