> 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/enable-group.md).

# Enable Group

Enables a Slack user group. You give the group's name or handle; the job looks it up with `usergroups.list` (disabled groups included) and then enables it with `usergroups.enable`. The job does not use the collected assets.

### Before you begin

* A Slack API token: a user token (`xoxp-`) with the scopes `usergroups:write` and `usergroups:read`. 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 scopes `usergroups:write` and `usergroups:read`. Not masked after saving.                              |
| User Group Name             | Text | Yes      | None        | The Slack user group name or handle, for example `my-team`.                                                                      |
| 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

* Lists all user groups including disabled ones and picks the first whose name or handle equals your value. If the list call fails, the job fails with `Slack API list groups error: <code>`; if nothing matches, with `Slack group not found: <value>`.
* Sends one `usergroups.enable` request for the group it found. If that fails, the job fails with `Slack API enable group error: <code>`.
* It runs once per workflow run. The run stops on any failure 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 Name | `security-team`        |

### 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>Disable Group</strong></td><td>The opposite action.</td><td><a href="broken://pages/b2261a5d14b59324808fdeb72a0f3e6c3534f0ab">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 %}
