Integrate ServiceNow
Integrate the Adaptiva OneSite Platform with ServiceNow.
The Adaptiva OneSite platform can connect to your ServiceNow instance and synchronize asset data and business logic. Using ServiceNow's Encoded Query Strings syntax, you can create Adaptiva groups that can be used to apply policy to devices.
Configure OAuth settings in ServiceNow
Adaptiva uses OAuth inbound authentication to securely access ServiceNow APIs. You will need to create a new inbound grant as well as a user account to provide access to the Configuration Management Database (CMDB) in ServiceNow.
Create an inbound integration record
In ServiceNow, navigate to System OAuth > Inbound Integrations. You can search for settings by clicking All and typing OAuth.

Click New integration.
The registered applications should use the Resource Owner Password Credentials inbound grant type. This will allow the OneSite platform to directly use a service account user's credentials to access the ServiceNow application.

Grant type Enter a Name and Provider name.
Under Auth scope, click Create auth scope.
Name the auth scope and click Save.
Select your auth scope from the drop-down.
In the Limit authorization to the following API's field select Table API.

Auth Scope
Record the Client ID and Client secret for use in the Adaptiva Admin Portal.
Click Save.
Create an API user
In ServiceNow, navigate to System Security > Users and Groups > Users.
Click New. We recommend creating a new user just this purpose.
Enter a User ID and any additional details you require.
From Identity type, select Machine.
Record the User ID for use in the Adaptiva Admin Portal.
Click Submit.
Click the new user to open it's properties page.
Under Roles, configure the permissions for the user to:
Role: cmdb_read

ServiceNow User Roles
Click Set Password.
In the Set Password dialog, click Generate.
Click the copy button and record the Password for use in the Adaptiva Admin Portal.
Click Save Password and then click Close.
Configure any additional user account settings and click Update.
You should now have the following details recorded form your ServiceNow instance:
Instance name
Username
Password
Client ID
Client secret
Configure integration settings in OneSite Platform
Log in to the Adaptiva Admin Portal with Super Admin credentials.
In the left-hand navigation, click Integrations > ServiceNow.

ServiceNow integration You can create one or more connections to ServiceNow instances.
Click New.
Under General Settings, enter a descriptive name for the instance that can identify it from any others.
Under ServiceNow Instance Settings, enter the values recorded from your ServiceNow instance:
Instance Name
Username
Password
Client ID
Client Secret
Click Save.
Click More > Test Settings to test the connection to ensure the details entered are correct.
Example: Create Group from ServiceNow query
You can create queries using ServiceNow's Encoded Query Strings syntax (see ServiceNow filters and queries) to scope a group to a specific set of devices synchronized from the ServiceNow CMDB. In this example, you will create a group for all devices in the Operations department based on a simple query.
On the left-hand navigation, expand Platform Features and click Assets > Groups.
Click New and name the group Operations Devices.
Under Group Scopes, select ServiceNowCMDB.
In the Select Instance drop-down, select your ServiceNow instance.
In the query editor, enter Department.name=operations.
Click Save.
Under Group Scopes, click Show Members and then click Evaluate Membership.
The query will return the devices in the Operations department queried from the ServiceNow CMDB.
You can use any ServiceNow attribute and query it using ServiceNow's Encoded Query Strings syntax. This allows you to use ServiceNow to manage your device inventory, and Adaptiva OneSite will seamlessly integrate, synchronize, and manage devices using that data.
Last updated
Was this helpful?