> For the complete documentation index, see [llms.txt](https://docs.docontrol.io/docontrol-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docontrol.io/docontrol-user-guide/integrations/slack-enterprise.md).

# Slack Enterprise

Slack Enterprise is a collaboration solution for large or complex organizations up to 500,000 people, and allows you to connect multiple dedicated workspaces inside your company.

DoControl is one of Slack Enterprise's **exclusive DLP partners** and is officially part of the Slack [Discovery program](<https://slack.com/help/articles/360002079527-A-guide-to-Slacks-Discovery-APIs#dlp-1 >). With DoControl, you can enable DLP monitoring (data loss prevention) across several Slack Enterprise workspaces simultaneously.&#x20;

After integrating, DoControl monitors Slack files and messages for sensitive information across all Slack conversations in private and public channels and workspaces. DoControl captures audit log and event data in near real-time, and this helps your organization to reduce the risk of data loss before sensitive data is exposed externally.

{% hint style="info" %}

* To integrate with Slack Enterprise, you need an [Enterprise Grid](https://app.slack.com/plans/) plan.
* If your organization uses Slack Enterprise Grid, you can choose what functionality you enable:
  * For full **Slack Enterprise** capabilities - Integrate with DoControl's [Slack Enterprise ](#integration-steps)module.
  * For **Slack basic** capabilities - Integrate with DoControl's [Slack](/docontrol-user-guide/integrations/slack.md) module.
* You can integrate with only one DoControl capability: Slack or Slack Enterprise.&#x20;
* Asset and user inventory are not displayed for Slack Enterprise (only for Slack).
  {% endhint %}

## Use cases

When you integrate DoControl with Slack Enterprise, you can address these use cases:&#x20;

* **Data loss prevention** ([Discovery program](<https://slack.com/help/articles/360002079527-A-guide-to-Slacks-Discovery-APIs#dlp-1 >)) -&#x20;
  * Monitor file and message sharing for sensitive data in all conversation types across the grid, within private and public channels. Make sure that scanning direct messages for DLP complies with your organization's privacy policies.&#x20;
  * Prevent data sharing with external organizations, and auto-delete files in private channels.
  * Remediate potential data loss by isolating files or messages in quarantine for further analysis, and then either deleting or restoring them if approved.
* **Audit log tracking** -&#x20;
  * Verify that users are logging in from a legitimate location or IP address, track these audit events in workflows, and notify if geographic violations occur. For example, the Security team will be notified if a US-based employee logs in from China.
  * Track audit logs across all workspaces in your Slack Enterprise Grid, and receive near real-time notifications for anomalous audit log events.
  * Proactively monitor for potential security issues or malicious access attempts.
* **DoControl bot messages and notifications** -
  * When the DoControl app joins your selected channels, members of each channel are notified once.
  * End users in public channels will receive DoControl bot messages as part of workflows, for example, asking to approve or reject their actions.&#x20;
  * To enable end users in private channels to receive automatic notifications, see [Notify in Slack](/docontrol-user-guide/workflows/define-workflow-settings/action-settings/notify.md#notify-in-slack).

{% hint style="info" %}

* For information how to remediate potential data loss, see [Slack Enterprise remediation](/docontrol-user-guide/workflows/define-workflow-settings/action-settings/remediate/slack-enterprise-remediation.md).
* For a sample playbook, see [Prevent PII on Slack Enterprise messages](/docontrol-user-guide/risk-management/threat-model-coverage/external-collaborator-sharing/slack-enterprise-playbooks-for-external-sharing.md#prevent-pii-in-slack-enterprise-messages).
  {% endhint %}

## Interactive approvals and decisions&#x20;

Receive interactive and dynamic Slack messages for approvals and decisions. The DoControl app allows you to:

* Start getting interactive Slack messages for approvals and decisions:&#x20;
  * Who approved or decided?
  * Was it approved or rejected? What was decided?
* Respond to approvals and decisions directly in the Slack channel
* Easily track your Slack notifications

<div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FY9nVMz7SnOTDwLXFTFpF%2FDoControl%20app%20share.png?alt=media&amp;token=3b4e5c89-111b-4053-9c0c-efa42abbf8a5" alt="" width="563"><figcaption><p>Interactive Slack messages for approvals and decisions</p></figcaption></figure></div>

{% hint style="info" %}

* **Existing customers**: To migrate from DoBot to the new DoControl app and start receiving interactive Slack messages, you need to re-integrate DoControl with Slack or [Slack Enterprise](/docontrol-user-guide/integrations/slack-enterprise.md).&#x20;
* Notification settings have moved from Settings to the Slack integration wizard.
  {% endhint %}

## Prerequisites

Before integrating DoControl with Slack Enterprise, make sure the integrator has fulfilled these prerequisites:

* **Enterprise Grid** - Your organization must be an Enterprise Grid customer.
* **Primary Org Owner** - Only a Primary Org Owner can install DoControl. This account should be created specifically for this purpose, so that DoControl is not tied to a single user.
* **Connected to Slack Enterprise** - The Primary Org Owner must be logged into Slack Enterprise before integrating with DoControl.
* **DoControl is an approved domain** - In your email provider, define DoControl as an **approved** domain. If you use an email security solution, it will release decision and approval notifications only if DoControl is whitelisted.

{% hint style="info" %}
If your organization is leveraging only audit log tracking (not DLP), it's enough for the integrator to be an **owner** of Slack Enterprise.
{% endhint %}

## Send email to Slack to enable integration

To integrate with the Data Loss Prevention (DLP) functionality, your organization owner needs to send an email asking Slack to enable your settings.

{% hint style="warning" %}
You cannot integrate DoControl with Slack Enterprise if you don't ask Slack to first enable these settings.
{% endhint %}

#### To ask Slack to enable DLP integration:

1. Your organization **owner** needs to send an email to: `exports@slack.com.`
2. Ask Slack to enable:

   **Discovery APIs** for your organization
3. After verifying that your email address matches an owner of the organization, Slack will enable access for you to complete the integration.

## Required permission scopes

When you integrate DoControl with Slack Enterprise, you can select which functionalities you enable. You can leverage either audit log tracking or data loss prevention, or both. The required permissions scopes vary according to functionality:

<table><thead><tr><th width="350">Slack Enterprise scope</th><th width="320">Permission scope in Slack</th></tr></thead><tbody><tr><td>Audit log tracking </td><td><ul><li><code>auditlogs:read</code></li></ul></td></tr><tr><td>Data loss prevention (Discovery program)</td><td><ul><li><code>discovery.read</code></li><li><code>discovery.write</code></li><li><code>admin.conversation:read</code></li></ul></td></tr><tr><td>DoControl bot messages and notifications (mandatory)</td><td><p></p><ul><li><code>chat:write</code></li><li><code>chat:write:public</code></li></ul></td></tr></tbody></table>

{% hint style="info" %}
For more information, see the Slack [audit logs API](https://api.slack.com/admins/audit-logs-call) and [Slack Discovery APIs](https://slack.com/help/articles/360002079527-A-guide-to-Slacks-Discovery-APIs#dlp-2).
{% endhint %}

## Slack Enterprise events

When you create [workflows](/docontrol-user-guide/workflows/define-workflow-settings/action-settings/remediate/slack-enterprise-remediation.md) for Slack Enterprise DLP or audit log tracking, you need to select a trigger from this specific set of Slack Enterprise events. For more information per event type, click the relevant API link below.&#x20;

{% hint style="success" %}
To track the following Slack Enterprise events in near real-time, you need to select **Audit log tracking** when defining your [scopes and permissions ](#select-scopes-and-permissions)in the integration wizard.
{% endhint %}

<table><thead><tr><th width="224">Event type</th><th>Slack Enterprise event</th></tr></thead><tbody><tr><td><a href="https://api.slack.com/admins/audit-logs-call#channel">Channel events</a></td><td><p>guest_channel_join</p><p>guest_channel_leave</p><p>private_channel_created</p><p>private_channel_deleted</p><p>public_channel_converted_to_private</p><p>public_channel_created</p><p>public_channel_deleted</p><p>private_channel_converted_to_public</p><p>user_channel_join</p><p>user_channel_leave</p></td></tr><tr><td><a href="https://api.slack.com/admins/audit-logs-call#user">User events</a></td><td><p>anomaly</p><p>canvas_downloaded</p><p>file_downloaded</p><p>guest_created</p><p>guest_joined_workspace</p><p>list_downloaded</p><p>public_channel_preview</p><p>role_change_to_admin</p><p>user_created</p><p>user_logout</p><p>user_login</p><p>user_joined_workspace</p></td></tr><tr><td><a href="https://api.slack.com/admins/audit-logs-call#app">App events</a></td><td><p>app_approved</p><p>app_installed</p><p>app_scopes_expanded</p><p>bot_token_upgraded</p></td></tr><tr><td><a href="https://api.slack.com/admins/audit-logs-call#file">File events</a></td><td>file_malicious_content_detected</td></tr></tbody></table>

## Integration steps

To integrate DoControl with Slack Enterprise, follow these steps:

1. [Select scopes and permissions](#select-scopes-and-permissions)
2. [Select workspaces](#select-workspaces)
3. [Select conversations ](#select-conversations)
4. [Exclude conversations from monitoring (optional)](#exclude-conversations-from-monitoring-optional)

### Select scopes and permissions

{% hint style="info" %}
Both Slack Enterprise scopes (DLP and audit log tracking) are selected by default, but you can choose to integrate only one scope if you wish.
{% endhint %}

1. From the DoControl side menu, click **Integrations**.
2. Under the Slack Enterprise icon, click **Connect**.\
   The Connect to Slack Enterprise wizard opens.
3. Click **Get started**, and follow the instructions in the wizard.
4. For **Scopes and permissions**, select the functional areas you want the integration to cover:

   * **Data loss prevention (DLP)** - Monitor sensitive data sharing and remediate potential data loss.
   * **Audit log tracking** - Track near-real time audit log events, and monitor for security issues.&#x20;
   * **DoControl bot messages and notifications** - Send messages to users as part of workflows (selected by default).

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fb1dVrghVZcUVIQCkaw5t%2FSlack%20DLP%20scopes.png?alt=media&amp;token=4f8fe6e1-076e-453c-99cd-1b4863f38ea5" alt=""><figcaption></figcaption></figure>
5. For **Permissions**, make sure Write (remediation) is selected if you want to perform remediation actions in Slack Enterprise.
6. Click **Next**.
7. In the Connections page, click **Connect** for each one of your selected functional scopes.<br>

   <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2F49jMNjoeDmHSA0Usp9Xw%2FSlack%20Ent%20connections.png?alt=media&amp;token=d6bdbf6d-352f-451f-a6e8-ad595e3beae0" alt=""><figcaption></figcaption></figure></div>
8. Click **Next**.

{% hint style="warning" %}
**Troubleshooting**: If DoControl doesn't manage to sync your connections, check that:

* You have Primary Owner permissions (for conversation monitoring) or Workspace admin or owner (for DoControl bot messages and notifications).
* Your Slack plan is Enterprise Grid (for conversation monitoring) or minimum Slack Pro (for DoControl bot messages and notifications).
* You enabled Discovery APIs and DLP file pre-processing by [sending an email](#send-email-to-slack-to-enable-integration-dlp) to Slack.
  {% endhint %}

### Select workspaces

1. For **Workspaces**, select the following:

   * All workspaces, or&#x20;
   * Selected workspaces<br>

     <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fnhdvnow68CPWf7XJZCFM%2FSlack%20Enterprise%20all%20workspaces.png?alt=media&amp;token=d88568c2-e4a0-4010-9a6a-42266ee518a5" alt=""><figcaption></figcaption></figure>

2. **Audit log tracking scope only**: To enter selected workspaces, you first need to locate the workspace ID:

   * Sign in to your Slack account, and go to your main workspace.
   * From the URL in your browser, copy the numbers and letters starting with “T”. This represents your workspace ID (e.g. T12345w).
   * Enter your selected workspace IDs.<br>

     <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FeJNlqrdwTOkoGNGy0uB3%2FSlack%20Enterprise%20selected%20workspaces.png?alt=media&amp;token=af994677-507d-4597-911f-41d66c15158e" alt=""><figcaption></figcaption></figure>

3. **Data loss prevention (Discovery) scope**: Type the workspace name and it will auto-complete. Click **Enter** to type multiple workspace IDs.\
   \
   ![](https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FAWcFQid9VNqb9OAH54Ph%2Fworkspaces.png?alt=media\&token=7766e834-25fc-467a-821c-37e0cce91063)

{% hint style="success" %}
If you choose **all** workspaces, your monitored data is dynamically updated whenever new workspaces are added.
{% endhint %}

### Select conversations

If you choose **all** conversations, your monitored data is dynamically updated whenever new conversations are added.

1. For **Conversations**, select the following:
   * **All conversations** - All internal and external conversations are checked. You can deselect any of these internal and external conversation types: public channels, private channels, or direct messages.

<figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FEKfKwjlGkxU2lIsID3af%2FSlack%20Ent%20conversations.png?alt=media&amp;token=c1f7b1b5-a1c8-45e5-b766-29fe5ebdea8e" alt=""><figcaption></figcaption></figure>

OR

* **Selected conversations** - Choose between 1-15 conversations for monitoring file sharing. Start typing the conversation name to auto-complete.<br>

  <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FlfZ2MpaG9kLFULHgXVBK%2Fconversation%20select.png?alt=media&amp;token=2dd54285-b02b-4abb-a201-7bc7fa0a3f5c" alt="" width="375"><figcaption></figcaption></figure></div>

2. Select **Direct messages** if you wish to scan direct messages.

{% hint style="warning" %}
Make sure that scanning direct messages from internal and external conversations complies with your organization's privacy policies.
{% endhint %}

### Exclude conversations from monitoring (optional)

The options for excluding conversations from monitoring depend on which [conversations](#select-conversations) you selected:

* If you selected **All conversations** - You can exclude specific conversations or users or apps from monitoring for file sharing. These excluded entities won't be monitored for sensitive data.<br>

  <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FWlhY2pFkewbhxF38pGFf%2Fexclude%20from%20all%20conversations.png?alt=media&amp;token=d4afb49d-6343-48b1-9d41-7617bcb56287" alt="" width="563"><figcaption></figcaption></figure></div>
* If you selected **specific conversations** - You can only exclude specific users or apps.<br>

  <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FbVif0eYZZ4nzJiZa0BSq%2FSlack%20exclude.png?alt=media&amp;token=fa031673-200c-49ce-b93d-ca0ed98cdad3" alt="" width="563"><figcaption></figcaption></figure></div>

#### To exclude conversations from monitoring:

You can choose between 1-15 conversations to exclude from monitoring.

1. Select the relevant conversation from the dropdown list to exclude from monitoring (only if you selected all conversations).
2. Type the **user name** to exclude specific users from monitoring for file sharing.
3. Type the **app name** to exclude specific apps from monitoring for file sharing.<br>

{% hint style="success" %}

* Start typing the user or app name to auto-complete.
* Click **Enter** to type multiple user or app names.
  {% endhint %}

3. Click **Save**.

When done, you'll get a Success message that Slack Enterprise is connected.

{% hint style="info" %}
For information how to remediate potential data loss, see [Slack Enterprise remediation](/docontrol-user-guide/workflows/define-workflow-settings/action-settings/remediate/slack-enterprise-remediation.md).
{% endhint %}

## Troubleshooting

Q. What happens if my Slack Enterprise token expires?

A. If the person who performed the integration leaves your organization, your Slack Enterprise token will expire. You need to reconnect to DoControl by performing the [integration procedure](/docontrol-user-guide/integrations/slack-enterprise.md) again.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docontrol.io/docontrol-user-guide/integrations/slack-enterprise.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
