User Notifications and Alert Settings

Harness provides granular control of notifications, allowing you to control alert conditions, users, and groups across your account and in individual Workflows.

There are three major notification features:

  • Notification Settings for User Groups – Set the notification channels for User Group members, such as group or individual email addresses and Slack channels. When the User Groups is used in an Alert Notification Rule or in a Workflow Notification Strategy, these channels will be used to notify the group members.
  • Alert Notification Rules – Set which types of alerts are sent to different User Groups. You can also set up a default Catch-All Notification User Group to receive all alerts.
  • Workflows Notification Strategy – Set notification conditions in a Workflow or Workflow Phase and the User Groups to notify when the conditions are met.

Notification Settings for User Groups

You can add notification settings to Harness User Groups, including group email addresses and Slack channels. When the User Group is assigned an Alert Notification Rule or added to a Workflow Notification Strategy, the channels you set here will be used to notify them.

To add notification settings to Harness User Groups, do the following:

  1. In Harness Manager, click Continuous Security, and then click Access Management.
  2. In Access Management, click User Groups.
  3. Click the name of an existing User Group, or create a new User Group with the steps in Managing Users and Groups (RBAC).
  4. Locate the Notification Settings section.
  5. Click the vertical ellipsis and click Edit. The Notification Settings dialog appears.
  6. Configure the following notification settings and click SUBMIT.
  • Use Members' Individual Email Addresses – Enable this setting to have notifications sent to the individual email addresses of the Member Users listed in the group.
  • Send an Email Notification to Members Newly Added to This Group – Enable this setting to notify new members when they're added to the group.
  • Group Email Addresses – Enter any group email addresses where Harness can send notifications. The Group Email Addresses are always used, regardless of whether Use Members' Individual Email Addresses is enabled.
  • Slack Channel Name – Enter the name of a Slack channel where Harness can post notifications. You do not need to enter the exact name, as the Slack Webhook URL will point to the exact channel.
  • Slack Webhook URL – Enter the Slack channel Incoming Webhook URL. For steps on obtaining a Slack channel Incoming Webhook, see Incoming Webhooks from Slack.

When you are done, the dialog will look something like this:

Once you click SUBMIT, the Notification Settings appear in the User Group page.

Alert Notification Rules

The Alert Notification Rules set which alerts to send to specific User Groups, such as when a Harness Delegate is down.

To set up an Alert Notification Rule, do the following:

  1. In Harness Manager, click Setup, and then click Alert Notification Rules. The Alert Notification Rules settings appear.

The sections in Alert Notification Rules are discussed below.

Catch-All Notification Rule

In Catch-All Notification Rule, you specify the User Groups to use as the Catch-All Notification Groups, and the alert rules for those Groups. Whatever rules are not covered by the Alert Notification Rules section are applied to the User Groups in the Catch-All Notification Rule section.

For example, if the rule Matching (Alert Type: No Eligible Delegates) is not applied to any User Group in the Alert Notification Rules section, then that alert is sent to the User Groups set up in the Catch-All Notification Rule section.

One Catch-All Notification Rule User Group is required. By default, the Account Administrator User Group is used.

To set up a Catch-All Notification Rule User Group, do the following:

  1. In the Alert Notification Rules page, click the pencil icon next to the Catch-All Notification User Group.
  2. In User Group(s), select the User Groups to set as the Catch-All Notification User Groups.
  3. Click SUBMIT. The groups you selected are listed.

Alert Notification Rules

The Alert Notification Rules set which alerts are sent to which User Groups.

To set up an alert notification rule, do the following:

  1. In the Alert Notification Rules section, click Add New Rule. The Notification Settings dialog appears.
  2. In Alert Category, select a category, such as Setup. Additional categories will be added to this feature in the near future.

    The Alert Filter options appear.
  3. Select Matching or Not Matching.
  4. In Alert Type, select the alert to add to the rule, such as No Active Delegates.
  5. In User Groups, select the User Groups that will receive the alert.

    When you are done, the dialog will look something like this:
  6. Click SUBMIT. The new rule is displayed.

Alert Examples

Here is an example of an alert in Slack:

Here is an example of an alert in email:

Workflow and Phase Notifications

Workflow notifications are set up in the Workflow Notification Strategy settings. For information on setting the Workflow Notification Strategy, see Notification Strategy.


How did we do?