> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/slack/disable-group.md).

# Disable Group

Disables one Slack user group with Slack's `usergroups.disable` API. The job does not use the collected assets: it runs once with the group ID you enter. To turn the group back on, use [Enable Group](broken://pages/88520ef2425fb91cb78344644bfc0c6c3c3fc1c0).

### Before you begin

* A Slack API token: a user token (`xoxp-`) with the scope `usergroups:write`. Organization-level tokens (`xoxa-`) work only with a Team id. Enter it in **Slack API Token**.
* Asset type: **User** (`allowed_asset_types` is `user`). The job does not read any asset data and has no required columns.
* Job defaults: Slack Domain, Slack API Token and the other fields can be saved as defaults for this job in [Action Center Settings](broken://pages/fa25776ab251a33bb2a7e69faf62f677f3b76280).

### Settings

| Setting                     | Type | Required | Default     | Description                                                                                                                      |
| --------------------------- | ---- | -------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- |
| Slack Domain                | Text | No       | `slack.com` | The Slack domain the requests are sent to. Requests go to `https://<domain>/api/...`.                                            |
| Slack API Token             | Text | Yes      | None        | User token (`xoxp-`) with scope `usergroups:write`. Not masked after saving.                                                     |
| User Group ID               | Text | Yes      | None        | The ID of the user group, for example `S01234567`.                                                                               |
| team\_id (shown as Team id) | Text | No       | None        | Slack Team ID. Needed only with an organization-level token (`xoxa-`). The job sends it only when the token starts with `xoxa-`. |

**Team id** is a label derived from the field name.

### How it works

* Sends one `usergroups.disable` request with the group ID. It runs once per workflow run.
* If Slack rejects the request, the job fails with `Slack API disable group error: <code>`. The run stops and the error appears under **Error Details** in **History**.
* Passes the same assets it received to the next node.

### Example

| Setting         | Value                  |
| --------------- | ---------------------- |
| Slack Domain    | `slack.com`            |
| Slack API Token | `YOUR_SLACK_API_TOKEN` |
| User Group ID   | `S01234567`            |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/c53d026b9438b74e5c96c7a59bb6d75211026536">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values for this job.</td><td><a href="broken://pages/fa25776ab251a33bb2a7e69faf62f677f3b76280">Broken link</a></td></tr><tr><td><strong>Enable Group</strong></td><td>The opposite action.</td><td><a href="broken://pages/88520ef2425fb91cb78344644bfc0c6c3c3fc1c0">Broken link</a></td></tr><tr><td><strong>Update Group</strong></td><td>Change a Slack user group.</td><td><a href="broken://pages/ab58b35f6f13a552d7422e9c7d917dd7a0ab7ed2">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 6.3.0.
{% endhint %}
