> ## 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, choose the channel 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 a single destination channel it posts 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.
* **A verified destination:** Saving a channel checks it, so a channel Prowler cannot reach is reported straight away rather than when something depends on it.
* **Controlled reach:** Prowler posts only to the channel recorded 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. One channel is recorded on the integration as the default destination.
4. Saving that channel checks the connection against it, covering both the credential and the channel.
5. 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, while approving it 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 to the recorded channel.                                                                |
| `chat:write.public` | Post to a public channel without first inviting the Prowler app to it.                       |
| `channels:read`     | List public channels for the destination-channel picker and resolve the chosen one.          |
| `groups:read`       | List the private channels the Prowler app has been invited to, so they appear in the picker. |

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 channel recorded on the integration.** The scope exists so that recording a public channel does not also require someone to invite the Prowler app to it first.

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

`groups:read` reveals only the private channels the Prowler app is already a member of. A private channel therefore appears in the picker 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/tv7JLGVCKOza6dGM/images/prowler-app/slack/integrations-tab.png?fit=max&auto=format&n=tv7JLGVCKOza6dGM&q=85&s=320a96f8ae033924e2b3ec0274997354" 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/tv7JLGVCKOza6dGM/images/prowler-app/slack/no-workspace-connected.png?fit=max&auto=format&n=tv7JLGVCKOza6dGM&q=85&s=23bbca950b22c71f3c859d3e1f12225f" 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/QmvBBuMevYEvpnU1/images/prowler-app/slack/connected-workspace.png?fit=max&auto=format&n=QmvBBuMevYEvpnU1&q=85&s=798958ea31703e6270654c2959350955" alt="Connected Slack workspace with no destination channel recorded 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 destination channel, so no check has run at this point. Choosing that channel is the next step. Once one is recorded, **Test connection** verifies that Prowler can still reach both the workspace and that channel.

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

## Choosing the Default Channel

Prowler posts to one channel, recorded on the integration as its default destination.

1. Open the **Destination channel** picker. 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/QmvBBuMevYEvpnU1/images/prowler-app/slack/channel-picker.png?fit=max&auto=format&n=QmvBBuMevYEvpnU1&q=85&s=ba83075f59b579e06e804a2a38c3d5d5" alt="Destination channel picker 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 a channel.

3. Click **Save channel**.

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

If the picker 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 picker 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 picker's search filters what was already read, so neither surfaces a channel the read left out.

## 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/tv7JLGVCKOza6dGM/images/prowler-app/slack/disconnect-confirmation.png?fit=max&auto=format&n=tv7JLGVCKOza6dGM&q=85&s=5e7d567bde9db01e1d3fded97900300c" 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. Reconnecting means approving Prowler in Slack again, and the destination channel has to be chosen again.
</Warning>

## Integration Status

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

| Button               | Purpose                                                         | Notes                                                                                                                                |
| -------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **Test connection**  | Verify Prowler can reach the workspace and the recorded channel | Checks both the credential and the channel, and updates the last-checked time. Cannot be run until a destination channel is recorded |
| **Refresh channels** | Re-read the workspace's channel list                            | Use after inviting `@Prowler` to a private channel                                                                                   |
| **Save channel**     | Record the selected channel as the default destination          | Enabled once a channel other than the current default is selected                                                                    |
| **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 Picker

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 the recorded channel still exists and has not been archived.
* For a private destination channel, confirm the Prowler app is still a member of it.
* Confirm the Prowler app is still installed in the workspace.

### 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 the Channel

* Confirm the destination channel saved on the integration is the channel being watched in Slack.
* Check the outcome reported on the page: when Slack refuses the channel, the reason Slack gave is shown there — an archived or deleted channel surfaces here rather than failing silently.
* For a private channel, confirm the Prowler app is still a member of it.


## Related topics

- [Integrations](/user-guide/cli/tutorials/integrations.md)
- [Creating a New Integration](/developer-guide/integrations.md)
- [Prowler Product Families](/getting-started/products/index.md)
- [Overview](/getting-started/products/prowler-mcp.md)
- [Support](/support.md)
