Connecting to Slack

Learn how to seamlessly integrate Castle with Slack to receive real-time notifications, keeping your team informed and proactive with automated alerts and enhanced monitoring.

Castle can send notifications to Slack channels whenever items are added to a List via a Policy. This enables your team to receive real-time notifications whenever a specified condition is met. These notifications can be based on any type of entity, such as User, IP, or email domain. Slack notifications are an excellent way to monitor the impact of Policies before deciding to take action, for instance, to highlight users sharing accounts.

๐Ÿ“˜

Note: For more information on Castleโ€™s Terms of Use and Privacy Policy, please visit the Castle Trust Center

Example Slack notification

Example Slack notification

Setup

๐Ÿ’ก

To set up the Castle app for Slack you need to be an admin in your Slack organization.

The first time you click the Slack button, Castle will prompt you to configure the Castle app for Slack.

Go to the List management page and click the Slack button near a list:

Configuration of the Castle Slack app is triggered the first time an alert is setup

Configuration of the Castle app for Slack is triggered the first time an alert is set up

Enable Slack alerts

To enable Slack alerts for a specific list, simply click the Slack button and select the desired channel from the drop-down menu. You can configure multiple integrations per list.

๐Ÿ’ก

Slack notifications are only dispatched when items are added to a List via Policy automation. If you add items manually, this will not trigger a notification

Setting up a Slack notification

Setting up a Slack notification

Remove Slack alerts

To remove an existing Slack alert, click the cross icon next to the channel name:

Removing a Slack alert

Removing a Slack alert

Notifications on private channels

Slack limits app access to public channels only. To send notifications to a private channel, you need to invite the Castle app to the private channel you want to use:

  1. Open the private channel you want to send notifications to, e.g.,#castle-private.

  2. Click the channel name:

    Selected channel name in a Slack private channel
  3. Select the Integrations tab, then click Add in the "Apps" section:

    Integrations tab in a Slack private channel
  4. Filter for "Castle" and click the Add button:

    Castle app in Slack app directory

Now you can create a Slack alert using custom channel name:

  1. Open a List you want to add a Slack notification to, and click the Slack icon in the top right corner.

  2. Click Search for channels and select Manually enter:

    Manually entering Slack channel name
  3. Type in the channel name and click Add private channel:

    Typing private channel name for Slack integration

Sending a test notification

  1. Configure and set up Slack alerts for the "Blocked users" list by following the previous steps.

  2. In your sandbox environment, create a new Policy with the following settings:

  3. Once created, enable the policy by clicking the toggle button to the right side on the entry.

  4. Follow the 5 minute quickstart guide to send a test event from your browser. Make sure you use the exact same user details in order to trigger the signal for disposable e-mail domains.

  5. Navigate to the "Blocked users" list, and see that there is a new entry based on the event that you just sent. This means that a Slack alert has been sent to the channel you configured while setting them up.

  6. If you need to send another test notification, you can trigger the page view again, but with a different disposable email, such as [email protected]