Skip to navigation

Manage Notification Policies for ServiceNow

Who can use this feature

Anyone with these permissions: Manage notification policies

Create a notification policy so that Eon creates an incident in your ServiceNow service desk when a subscribed event happens.

A notification policy can send notifications to a single ServiceNow instance. To send notifications to multiple instances, you’ll need to create a separate notification policy for each.

Eon connects to your ServiceNow instance with a username and password, or with an OAuth application. Choose one method:

Create a notification policy with a username and password

With this method, you create a dedicated API user in ServiceNow and provide its username and password to Eon.

Before you start

Make sure you have admin access to your ServiceNow instance.

1

Find your ServiceNow instance URL

Your ServiceNow instance URL is the address you use to log in to ServiceNow. You’ll enter this URL when configuring the notification policy in Eon.

  1. Log in to your ServiceNow instance as an admin.

  2. Copy the URL from your browser’s address bar. The instance URL is the full hostname, including the protocol (for example, https://yourcompany.service-now.com).

  3. Save the URL in a temporary location so you can provide it to Eon later.

2

Create an API user

In this step, you’ll create a dedicated machine user in ServiceNow that Eon will use to create incidents.

  1. In ServiceNow, navigate to User Administration → Users.

  2. Click New. The User - New Record page opens.

    Screenshot of the ServiceNow User - New Record page showing User ID, First name, Identity type, and Active fields.

  3. Fill in User ID and First name with values that convey the user’s purpose (for example, eon_notifications for user ID and Eon Notifications for first name).

    Set Identity type to Machine, and keep Active selected.

    Save the user ID to a temporary location so you can provide it to Eon later.

  4. Click Submit.

You’re redirected to the user list.

3

Assign the required role

The API user needs a role that allows it to create incidents in ServiceNow.

  1. In the user list, find and open the user you just created.

  2. At the bottom of the user page, click the Roles tab, and then click Edit….

  3. Add the sn_incident_write role.

  4. Save the role assignment.

4

Generate the user's password

In this step, you’ll generate a password for the API user. You’ll enter it in Eon in the next step, so keep this tab open.

  1. At the top of the user’s page, click Set Password. The password dialog opens.

    Screenshot of the Set Password dialog

  2. Click Generate to create a password.

  3. Copy the password and save it to a temporary location so you can provide it to Eon later.

  4. Click Save Password.

5

Create the notification policy in Eon

In this step, you’ll enter the ServiceNow credentials from the previous steps. Log in to your Eon project to complete this step:

  1. In your project’s Notification Policies page in the Eon console, click Create Notification Policy. The Create a Notification Policy wizard opens.

  2. Enter a Notification policy name that describes the ServiceNow instance notifications will be sent to.

  3. Choose the ServiceNow notification channel type, then click Next.

  4. Set these values:

    FieldValue
    Instance URLYour ServiceNow instance URL
    AuthenticationUsername and password
    UsernameThe username you created for the API user
    PasswordThe password you generated for the API user
  5. Click Next to continue.

6

Choose the notifications to send

  1. Pick the events you want to subscribe to.

  2. Optionally, set event conditions to filter which events trigger notifications:

    To filter notifications to specific events, turn Apply event conditions on. With conditions turned on, you’ll receive notifications only for events that match the conditions you set.

    To leave Apply event conditions off, you’ll receive notifications for all events of the selected types.

    When you turn Apply event conditions on, click Set Condition to choose the event properties you want to filter by. You can filter by vaults, backup policies, resources, or source accounts.

    You can set a simple AND or OR list of conditions, or you can group conditions for fine-tuned event filtering.

    Work with conditions

    • To add a condition: Click (Add condition), then select the property, operator, and value for the condition.

    • To add a condition within a group: Click the large (Add condition) button in the group, or select (Add condition) > Add condition > Above or Below. Then select the property, operator, and value for the condition.

    • To delete a condition: Click the condition’s (Actions) menu, then click Delete condition.

    For each condition, set the property, operator, and value.

    Work with groups

    • To nest an existing condition or group in a group: In an existing condition or group, click (Actions) > Create group. Select the group’s logical AND or OR operator.

    • To delete a group and all the conditions it contains: Click the group’s (Actions) menu, then click Delete group.

  3. When you’re done, click Create.

If Eon can’t create the notification policy, check that the instance URL, API username, and password are correct, and that the API user has the required role.

The notification policy is created. About a minute later, Eon creates one incident titled Notification Policy Created: <policy_name> in your ServiceNow service desk. To find it, open Service Desk → Incidents in ServiceNow.

Eon assigns these ServiceNow attributes to each incident, by event type:

EventServiceNow impactServiceNow urgencyResulting priority
Ransomware detected1 - High1 - HighCritical
Backup job failed1 - High1 - HighCritical
Restore job failed1 - High1 - HighCritical
Compliance violations detected2 - Medium2 - MediumModerate
Cloud account deactivated2 - Medium2 - MediumModerate
All other events3 - Low3 - LowLow

Create a notification policy with an OAuth application

With this method, you register an OAuth application in ServiceNow and provide its client ID and client secret to Eon. ServiceNow screens and labels can differ by release.

Before you start

Before you create the notification policy, make sure:

  • You have admin access to your ServiceNow instance, including permission to create system properties.

  • Your ServiceNow instance is on the Washington DC release or later, which introduced the client credentials grant for inbound calls. For details, see Inbound Client Credentials with Washington DC.

1

Find your ServiceNow instance URL

Your ServiceNow instance URL is the address you use to log in to ServiceNow. You’ll enter this URL when configuring the notification policy in Eon.

  1. Log in to your ServiceNow instance as an admin.

  2. Copy the URL from your browser’s address bar. The instance URL is the full hostname, including the protocol (for example, https://yourcompany.service-now.com).

  3. Save the URL in a temporary location so you can provide it to Eon later.

2

Turn on the client credentials grant

In this step, you’ll turn on the client credentials grant for your ServiceNow instance, as described in Create the Client Credentials system property.

  1. In ServiceNow, enter sys_properties.list in the navigation filter. The System Properties list opens.

  2. Search the list for glide.oauth.inbound.client.credential.grant_type.enabled.

  3. If the property exists, open it, set Value to true, and save it.

  4. If the property doesn’t exist, click New and set these values:

    FieldValue
    Nameglide.oauth.inbound.client.credential.grant_type.enabled
    Typetrue | false
    Valuetrue

    Create the property in the Global application scope. You can also add an optional Description.

    Save the property.

3

Create the application user

In this step, you’ll create the user that Eon uses to create incidents.

  1. In ServiceNow, navigate to User Administration → Users.

  2. Click New. The User - New Record page opens.

  3. Fill in User ID and First name with values that convey the user’s purpose (for example, eon_notifications for user ID and Eon Notifications for first name).

    Keep Active selected. You don’t need to set a password for this user.

  4. Click Submit.

You’re redirected to the user list.

4

Assign the required role

The user needs a role that allows it to create incidents in ServiceNow.

  1. In the user list, find and open the user you just created.

  2. At the bottom of the user page, click the Roles tab, and then click Edit….

  3. Add a role that permits the user to create incidents in ServiceNow.

  4. Save the role assignment.

5

Create the OAuth application

In this step, you’ll register the OAuth application that Eon uses to connect to ServiceNow, as described in Create an endpoint for clients to access the instance.

  1. In ServiceNow, navigate to System OAuth → Application Registry.

  2. Click New.

  3. Select Create an OAuth API endpoint for external clients.

  4. Enter a Name that conveys the application’s purpose (for example, Eon Notifications).

    Leave Client Secret empty. Leave the other fields at their defaults. ServiceNow generates the client ID and, when you save, the client secret.

  5. Save the application.

6

Set the application user and grant type

In this step, you’ll add the OAuth Application User and Default Grant type fields to the application form and set their values, as described in Add OAuth Application User.

  1. In the Application Registry, open the application you just created.

  2. In the ServiceNow menu in the upper left, select Configure → Form Design.

  3. Add the OAuth Application User and Default Grant type fields to the form, and save the form design.

  4. In OAuth Application User, select the user you created.

  5. Set Default Grant type to Client Credentials.

  6. Save the application.

7

Copy the client ID and client secret

ServiceNow shows the client credentials on the application form.

  1. In the application form, copy the Client ID and save it to a temporary location so you can provide it to Eon later.

  2. Click the lock icon next to Client Secret to show the secret.

  3. Copy the client secret and save it to a temporary location so you can provide it to Eon later.

8

Create the notification policy in Eon

In this step, you’ll enter the OAuth application details from the previous steps. Log in to your Eon project to complete this step:

  1. In your project’s Notification Policies page in the Eon console, click Create Notification Policy. The Create a Notification Policy wizard opens.

  2. Enter a Notification policy name that describes the ServiceNow instance notifications will be sent to.

  3. Choose the ServiceNow notification channel type, then click Next.

  4. Set these values:

    FieldValue
    Instance URLYour ServiceNow instance URL
    AuthenticationOAuth client credentials
    Client IDThe client ID you copied from the OAuth application
    Client secretThe client secret you copied from the OAuth application
  5. Click Next to continue.

9

Choose the notifications to send

  1. Pick the events you want to subscribe to.

  2. Optionally, set event conditions to filter which events trigger notifications:

    To filter notifications to specific events, turn Apply event conditions on. With conditions turned on, you’ll receive notifications only for events that match the conditions you set.

    To leave Apply event conditions off, you’ll receive notifications for all events of the selected types.

    When you turn Apply event conditions on, click Set Condition to choose the event properties you want to filter by. You can filter by vaults, backup policies, resources, or source accounts.

    You can set a simple AND or OR list of conditions, or you can group conditions for fine-tuned event filtering.

    Work with conditions

    • To add a condition: Click (Add condition), then select the property, operator, and value for the condition.

    • To add a condition within a group: Click the large (Add condition) button in the group, or select (Add condition) > Add condition > Above or Below. Then select the property, operator, and value for the condition.

    • To delete a condition: Click the condition’s (Actions) menu, then click Delete condition.

    For each condition, set the property, operator, and value.

    Work with groups

    • To nest an existing condition or group in a group: In an existing condition or group, click (Actions) > Create group. Select the group’s logical AND or OR operator.

    • To delete a group and all the conditions it contains: Click the group’s (Actions) menu, then click Delete group.

  3. When you’re done, click Create.

If Eon can’t create the notification policy, check that:

  • The instance URL, client ID, and client secret are correct.

  • The glide.oauth.inbound.client.credential.grant_type.enabled system property is true.

  • The application user has a role that permits it to create incidents.

The notification policy is created. About a minute later, Eon creates one incident titled Notification Policy Created: <policy_name> in your ServiceNow service desk. To find it, open Service Desk → Incidents in ServiceNow.

Eon assigns these ServiceNow attributes to each incident, by event type:

EventServiceNow impactServiceNow urgencyResulting priority
Ransomware detected1 - High1 - HighCritical
Backup job failed1 - High1 - HighCritical
Restore job failed1 - High1 - HighCritical
Compliance violations detected2 - Medium2 - MediumModerate
Cloud account deactivated2 - Medium2 - MediumModerate
All other events3 - Low3 - LowLow

See also