For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. In ServiceNow, navigate to System OAuth > Inbound Integrations. You can search for settings by clicking All and typing OAuth.

Inbound Integrations
  1. 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

      If you have an organizational requirement to enforce token restrictions, please reach out to our Support Team for assistance.

  2. Record the Client ID and Client secret for use in the Adaptiva Admin Portal.

  3. Click Save.

Create an API user

  1. In ServiceNow, navigate to System Security > Users and Groups > Users.

  2. Click New. We recommend creating a new user just this purpose.

  3. Enter a User ID and any additional details you require.

  4. From Identity type, select Machine.

  5. Record the User ID for use in the Adaptiva Admin Portal.

  6. Click Submit.

  7. Click the new user to open it's properties page.

  8. Under Roles, configure the permissions for the user to:

    • Role: cmdb_read

      ServiceNow User Roles

      The script writer permission, snc_required_script_writer_permission, is inherited from cmdb_read and will appear in the user settings.

  9. Click Set Password.

  10. In the Set Password dialog, click Generate.

  11. Click the copy button and record the Password for use in the Adaptiva Admin Portal.

  12. Click Save Password and then click Close.

  13. Configure any additional user account settings and click Update.

  14. 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

  1. Log in to the Adaptiva Admin Portal with Super Admin credentials.

  2. In the left-hand navigation, click Integrations > ServiceNow.

    ServiceNow integration

    You can create one or more connections to ServiceNow instances.

  3. Click New.

  4. Under General Settings, enter a descriptive name for the instance that can identify it from any others.

  5. Under ServiceNow Instance Settings, enter the values recorded from your ServiceNow instance:

    • Instance Name

    • Username

    • Password

    • Client ID

    • Client Secret

  6. Click Save.

  7. 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.

  1. On the left-hand navigation, expand Platform Features and click Assets > Groups.

  2. Click New and name the group Operations Devices.

  3. Under Group Scopes, select ServiceNowCMDB.

  4. In the Select Instance drop-down, select your ServiceNow instance.

  5. In the query editor, enter Department.name=operations.

  6. Click Save.

  7. Under Group Scopes, click Show Members and then click Evaluate Membership.

  8. 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?