> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prowler.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Prowler product naming: Prowler App is now Prowler Local Server, and Prowler Enterprise is now Prowler Private Cloud. Always use the current names when answering. The full product reference is at /getting-started/products: Open Source projects are Prowler CLI, Prowler Local Server, Prowler Local Dashboard, and Prowler SDK; Prowler Products are Prowler Cloud, Prowler Private Cloud, Prowler Hub, Prowler Lighthouse AI, and Prowler MCP.

# Slack Integration

> Connect a Slack workspace to Prowler Cloud or Prowler Private Cloud, authorize the channels Prowler posts to, and verify the connection.

export const SubscriptionBanner = ({children, label = "feature"}) => {
  return <Note>
            This {label} is available exclusively in <b>Prowler Cloud</b> and <b>Prowler Private Cloud</b> with a <a href="https://prowler.com/pricing">subscription</a>.
            {children}
        </Note>;
};

export const VersionBadge = ({version}) => {
  return <a href={`https://github.com/prowler-cloud/prowler/releases/tag/${version}`} target="_blank" rel="noopener noreferrer" className="version-badge-link">
            <span className="version-badge-container">
                <span className="version-badge">
                    <span className="version-badge-label">Added in:</span> 
                    <span className="version-badge-version">{version}</span>
                </span>
            </span>
        </a>;
};

<VersionBadge version="5.40.0" />

<SubscriptionBanner />

Prowler Cloud and Prowler Private Cloud connect to a Slack workspace so security updates arrive where teams already work. Connecting takes one approval in Slack — there is no bot token to create, copy, or store by hand — and Prowler records the set of channels it is authorized to post to.

Integrating Prowler Cloud or Prowler Private Cloud with Slack provides:

* **Approval-based setup:** Approve Prowler once in Slack instead of building a Slack app and pasting a token.
* **Confirmed destinations:** The connection check verifies every authorized channel and confirms each new one in the channel itself, so a channel Prowler cannot reach is reported before anything depends on it.
* **Controlled reach:** Prowler posts only to the channels authorized on the integration, and private channels stay invisible until the Prowler app is invited to them.

<Note>
  This guide covers the Slack integration in Prowler Cloud and Prowler Private Cloud. It is unrelated to the Prowler CLI `--slack` flag, which posts a scan summary from the command line using a self-created Slack app and the `SLACK_API_TOKEN` and `SLACK_CHANNEL_NAME` environment variables — see [CLI Integrations](/user-guide/cli/tutorials/integrations) for that feature.
</Note>

## How the Slack Integration Works

When connected and configured:

1. A Slack workspace is approved once through Slack's app install flow, and Prowler stores the resulting credential encrypted.
2. Prowler reads the channels it can post to: the workspace's public channels, plus the private channels the Prowler app has been invited to.
3. Several of those channels are selected and saved as the integration's authorized channels.
4. The connection check verifies the credential and every authorized channel, and posts a one-time confirmation message to each channel it has not confirmed yet.
5. Features that deliver to Slack, such as [Alerts](/user-guide/tutorials/prowler-alerts), choose their destinations from the confirmed channels.
6. Disconnecting removes the integration from Prowler and attempts to revoke Prowler's access at Slack.

## Prerequisites

The Slack integration is available only in **Prowler Cloud** and **Prowler Private Cloud**. Prowler Local Server does not serve the Slack endpoints at all, so the Slack card does not appear on the Integrations page and the management page redirects away.

Configuring and using the Slack integration requires the **Manage Integrations** permission. The integration is tenant-wide, so it does not require **Unlimited Visibility** or any specific Provider Group.

One Slack workspace connects per tenant. Approving Prowler again in the same workspace refreshes the stored credential and keeps the authorized channels, but it resets their confirmations and the connection state — the connection check has to be run again. Approving Prowler in a *different* workspace is refused until the current workspace is disconnected: a workspace is never swapped out silently.

## Permissions Prowler Requests in Slack

Slack shows a consent screen listing everything the Prowler app asks for. Prowler requests exactly four bot scopes:

| Scope               | Why Prowler Requests It                                                                                 |
| ------------------- | ------------------------------------------------------------------------------------------------------- |
| `chat:write`        | Post the confirmation message, and any later notification, to the authorized channels.                  |
| `chat:write.public` | Post to a public channel without first inviting the Prowler app to it.                                  |
| `channels:read`     | List public channels for the channel selection and resolve the chosen ones.                             |
| `groups:read`       | List the private channels the Prowler app has been invited to, so they appear in the channel selection. |

Two of these read more broadly than they behave, and both are worth understanding before approving the app.

### What `chat:write.public` Does Not Grant

On the consent screen, `chat:write.public` reads as permission to post in any public channel. Prowler never uses it that way: **Prowler only ever posts to the channels authorized on the integration.** The scope exists so that authorizing a public channel does not also require someone to invite the Prowler app to it first.

### Why a Private Channel Is Missing From the Channel List

`groups:read` reveals only the private channels the Prowler app is already a member of. A private channel therefore appears in the channel list only after someone invites `@Prowler` to it in Slack:

```text theme={null}
/invite @Prowler
```

That invite is issued in Slack, by that channel's own members, and **the invite itself is the permission grant** — no scope bypasses it. Prowler ships no in-product flow to get the app invited, because the decision belongs to the channel's members. After inviting the app, click **Refresh channels** to re-read the list.

## Connecting a Slack Workspace

To connect a Slack workspace to Prowler Cloud or Prowler Private Cloud:

1. In either product, navigate to **Integrations**.

2. Locate the **Slack** card and click **Manage**.

   <img src="https://mintcdn.com/prowler/Z6Rw-SdHlbm376GK/images/prowler-app/slack/integrations-tab.png?fit=max&auto=format&n=Z6Rw-SdHlbm376GK&q=85&s=a9175bfaf81ce31bd6df8d7386d082df" alt="Slack card on the Integrations page in Prowler Cloud or Prowler Private Cloud" width="1920" height="1080" data-path="images/prowler-app/slack/integrations-tab.png" />

3. Click **Add to Slack**.

   <img src="https://mintcdn.com/prowler/Z6Rw-SdHlbm376GK/images/prowler-app/slack/no-workspace-connected.png?fit=max&auto=format&n=Z6Rw-SdHlbm376GK&q=85&s=09fa8c9d447e6d364fc5e7e104333948" alt="Slack management page before a workspace is connected, showing the Add to Slack action" width="1920" height="1080" data-path="images/prowler-app/slack/no-workspace-connected.png" />

4. In Slack, select the workspace to connect and approve the permissions listed on the consent screen.

5. Slack returns to Prowler Cloud or Prowler Private Cloud, which completes the install and shows the connected workspace.

   <img src="https://mintcdn.com/prowler/Z6Rw-SdHlbm376GK/images/prowler-app/slack/connected-workspace.png?fit=max&auto=format&n=Z6Rw-SdHlbm376GK&q=85&s=601027a4b807980f3c2c90021584e634" alt="Connected Slack workspace with no channels authorized yet" width="1920" height="1080" data-path="images/prowler-app/slack/connected-workspace.png" />

The connected card reports the workspace name and a **Not checked yet** status: the connection is checked against the authorized channels, and none are authorized at this point. Authorizing them is the next step. Once at least one channel is authorized, **Test connection** verifies the credential and every authorized channel, and confirms the ones not confirmed yet.

<Note>
  Declining the consent screen creates nothing. Prowler reports that the workspace was not connected and offers to start again.
</Note>

## Authorizing Destination Channels

Prowler posts to the channels authorized on the integration. Several channels can be authorized at once, and once the connection check has confirmed them they are the pool every consumer of the integration draws from: an [Alert](/user-guide/tutorials/prowler-alerts) picks its Slack destinations from the confirmed channels, never from the whole workspace.

1. Open the **Destination channels** selection. It lists the workspace's public channels, plus the private channels the Prowler app has been invited to, each marked **Private**.

   <img src="https://mintcdn.com/prowler/Z6Rw-SdHlbm376GK/images/prowler-app/slack/channel-picker.png?fit=max&auto=format&n=Z6Rw-SdHlbm376GK&q=85&s=223b9e3dc2d2d630707d253113b9c16c" alt="Destination channels selection listing public channels and an invited private channel marked Private" width="1920" height="1080" data-path="images/prowler-app/slack/channel-picker.png" />

2. Select one or more channels. A selected private channel keeps its lock and **Private** identification with the list closed, so the authorized set stays readable at a glance.

3. Click **Save channels**.

Prowler validates the selection against Slack and derives each channel name itself, so a recorded name can never drift from the channel it belongs to. Once the set is saved, the page reports where Prowler posts and runs the connection check over it.

If the selection reports that no channels are available, the workspace exposes nothing Prowler can see. Create a public channel, or invite `@Prowler` to a private one, then click **Refresh channels**.

A workspace can hold more channels than Prowler reads in one go. When that happens, the selection says so and lists what was read: every listed channel is usable, and a channel missing from a partial list is not necessarily one `@Prowler` has to be invited to. Only listed channels can be selected: **Refresh channels** repeats the same bounded read rather than reading further, and the selection's search filters what was already read, so neither surfaces a channel the read left out.

Saving a new selection replaces the authorized set: channels left out of it stop being authorized, and channels added to it are authorized but not yet confirmed. Changing which channels are in the set also resets the integration's connection state, so the check runs again over the new set — reordering the same channels does not. Saving an empty selection leaves the integration with no authorized channels, and **Test connection** cannot be run again until at least one channel is authorized.

<Warning>
  Removing a channel from the authorized set also removes it from every Alert that targeted it. Those Alerts keep their filters, frequency, and email recipients, and future delivery to that channel simply stops: nothing is posted to announce the removal, and the notifications already delivered stay in the channel. Disconnecting the integration has the same effect on every channel it had authorized. Restoring delivery means authorizing and confirming the channel again here, then selecting it again on each Alert.
</Warning>

### Confirming the Authorized Channels

A channel becomes usable as a destination once the connection check has confirmed it. Click **Test connection**: it verifies the stored credential and every authorized channel, and posts a one-time message to each channel it has not confirmed yet.

```text theme={null}
✅ Prowler connection verified. Notifications will be delivered to this channel.
```

Later checks never post that message again to a channel that is already confirmed, so it arrives once per channel. The integration reports as connected only when every check and every required confirmation succeeded; a failure names the channel that failed. The check needs at least one authorized channel — with none authorized, it cannot be run yet.

Confirmation is what makes a channel selectable elsewhere in Prowler Cloud. A channel authorized a moment ago is missing from an Alert's channel list until a connection check confirms it.

## Disconnecting a Slack Workspace

Disconnecting removes the integration from Prowler **and** attempts to revoke Prowler's access at Slack.

1. On the Slack management page, click **Disconnect**.
2. Review the confirmation, then click **Disconnect workspace**.

   <img src="https://mintcdn.com/prowler/Z6Rw-SdHlbm376GK/images/prowler-app/slack/disconnect-confirmation.png?fit=max&auto=format&n=Z6Rw-SdHlbm376GK&q=85&s=0b2077d8934ae87195e85131337a80d4" alt="Disconnect Slack workspace confirmation dialog" width="1920" height="1080" data-path="images/prowler-app/slack/disconnect-confirmation.png" />

The page returns to its unconnected state, ready for a new install.

### What Revocation Means

Revocation is attempted at Slack, and it is best-effort:

* **Revocation succeeded:** The stored credential no longer grants Prowler anything, and the integration is gone from Prowler.
* **Revocation failed:** The integration and the stored credential are gone from Prowler either way, so there is nothing to retry. Slack did not confirm the revocation, which means the Prowler app may still be installed in the workspace. Remove it from that workspace's Slack app settings.
* **Revocation unreported:** Slack's answer carried no outcome either way. The integration is gone from Prowler, and the disconnect is reported without any claim about revocation. When certainty matters, check the workspace's Slack app settings and remove the Prowler app if it is still installed.

Prowler reports the outcome it received: a failed revocation always names the manual cleanup step, and an unreported one is never presented as revoked.

<Warning>
  Disconnecting cannot be undone, and it removes the Slack channels from every Alert that targeted them. Reconnecting means approving Prowler in Slack again, authorizing the destination channels again, confirming them with a connection check, and selecting them again on each Alert that posts to Slack.
</Warning>

## Integration Status

The Slack management page reports the state of the connection and offers these actions:

| Button               | Purpose                                                                                    | Notes                                                                                                                                     |
| -------------------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| **Test connection**  | Verify the credential and every authorized channel, and confirm the ones not confirmed yet | Posts the confirmation message once per channel and updates the last-checked time. Cannot be run until at least one channel is authorized |
| **Refresh channels** | Re-read the workspace's channel list                                                       | Use after inviting `@Prowler` to a private channel                                                                                        |
| **Save channels**    | Record the selected channels as the integration's authorized set                           | Enabled once the selection differs from the authorized set                                                                                |
| **Disconnect**       | Remove the integration and attempt to revoke access at Slack                               | ⚠️ **Cannot be undone** — confirm before disconnecting                                                                                    |

## Troubleshooting

### Slack Is Not Available in This Environment Yet

The Prowler Slack app is not configured for the deployment being used, so no workspace can be connected. This resolves without any action on the tenant's side — the page starts working as soon as the app is configured.

### A Private Channel Does Not Appear in the Channel List

The Prowler app has not been invited to it. In Slack, run `/invite @Prowler` in that channel, then click **Refresh channels**. Membership is the permission: no scope reveals a private channel the app is not in.

### Connection Test Fails

* Confirm every authorized channel still exists and has not been archived. A failure names the channel Slack refused, and the integration reports as connected only when every authorized channel passes.
* For a private authorized channel, confirm the Prowler app is still a member of it.
* Confirm the Prowler app is still installed in the workspace.

### A Channel Is Missing From an Alert's Channel List

The channel is authorized here but not confirmed yet. Click **Test connection**: it confirms every authorized channel it has not confirmed, and confirmed channels become selectable on Alerts.

### Prowler's Access Has Been Revoked

When Slack stops accepting the stored credential — because a workspace administrator revoked it, or the app was removed from the workspace — Prowler reports the workspace as disconnected and offers **Reconnect to Slack**. Approving Prowler in Slack again restores access.

### The Connection Check Fails on a Channel

* Check the outcome reported on the page: it names the channel Slack refused and the reason Slack gave — an archived or deleted channel surfaces here rather than failing silently.
* Confirm that channel is still one of the intended destinations, and that it has not been archived or deleted in Slack.
* For a private channel, confirm the Prowler app is still a member of it.
* One unreachable channel is enough to report the integration as not connected, so removing a retired channel from the authorized set clears the failure — bearing in mind that removing it also removes it from every Alert that targeted it.


## Related topics

- [Integrations](/user-guide/cli/tutorials/integrations.md)
- [Alerts](/user-guide/tutorials/prowler-alerts.md)
- [Changelog](/changelog.md)
- [Creating a New Integration](/developer-guide/integrations.md)
- [Prowler Product Families](/getting-started/products/index.md)
