> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-platform/use-harness-platform/notifications-alerts-and-banners/notifications/send-notifications-using-slack.md).

# Send notifications using Slack

You can notify your User Group members using Slack as one of the notification channels. To do this, add a Slack Incoming Webhook into your Harness User Groups' [Notification Preferences](/harness-platform/use-harness-platform/platform-access-control/add-user-groups.md#edit-notification-preferences).

Then you can add your User Group to a Notification Strategy and receive alert info in Slack.

#### Before you begin <a href="#before-you-begin" id="before-you-begin"></a>

* See [User Group Notification Preferences](/harness-platform/use-harness-platform/platform-access-control/add-user-groups.md#edit-notification-preferences)

#### Visual Summary <a href="#visual-summary" id="visual-summary"></a>

Adding a Slack channel to your Harness User Groups **Notification Preferences** is as simple as pasting in a Slack Webhook:

![](/files/958E8QsOFb6nY93LylNJ)

#### Step 1: Create a Slack App and Webhook for Your Channel <a href="#step-1-create-a-slack-app-and-webhook-for-your-channel" id="step-1-create-a-slack-app-and-webhook-for-your-channel"></a>

Follow the steps in Slack documentation for creating a Slack app, selecting your channel, and creating a webhook: [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks).

When you are done, you'll have a webhook that looks something like this:

![](/files/dCVzG23cdzF2WRdFaegZ) Copy the Webhook.

#### Step 2: Add the Webhook to the User Group Notification Preferences <a href="#step-2-add-the-webhook-to-the-user-group-notification-preferences" id="step-2-add-the-webhook-to-the-user-group-notification-preferences"></a>

1. In your **Account**/**Organization**/**Project** click Access Control.
2. Click **User Groups**.
3. Select the User Group to which you want to add notification preferences.
4. In **Notification Preferences**, select **Slack Webhook URL**.
5. Paste the Webhook into **Slack Webhook URL** or add it as an [Encrypted Text](/harness-platform/use-harness-platform/secrets/add-use-text-secrets.md) in Harness and reference it here.\
   For example, if you have a text secret with the identifier slackwebhookURL, you can reference it like this:

```
<+secrets.getValue("slackwebhookURL")>​​
```

You can reference a secret within the Org scope using an expression with `org`:​

```
<+secrets.getValue("org.your-secret-Id")>​
```

You can reference a secret within the Account scope using an expression with `account`:​

```
<+secrets.getValue("account.your-secret-Id")>​
```

6. Click **Save**.![](/files/958E8QsOFb6nY93LylNJ)

Now your Slack channel will be used to notify this User Group of alerts.
