> 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/create-users-enterprise.md).

# Create Users (Enterprise)

Creates one Slack user with a `POST` to the Slack SCIM `Users` endpoint. The job does not use the collected assets: it creates the single user you describe in the form each time the workflow runs.

{% hint style="info" %}
Slack only offers this API to workspaces on an Enterprise plan. The token help text in the job form says so.
{% endhint %}

### Before you begin

* A Slack SCIM token with the scope `scim:write`, on a Slack Enterprise plan. Enter it in **Slack SCIM 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       | `api.slack.com` | The Slack SCIM API domain.                                                                                                                                                                                                                                                                                                                                          |
| Slack SCIM API Token    | Text             | Yes      | None            | Slack token with scope `scim:write`. Not masked after saving.                                                                                                                                                                                                                                                                                                       |
| Username                | Text             | Yes      | None            | The Slack username.                                                                                                                                                                                                                                                                                                                                                 |
| Emails                  | List             | Yes      | None            | A list of email entries. Include at least one work email with `primary` true. Each entry is an object with `value` (the address), `type` (`work` or `home`) and an optional `primary` (true or false).                                                                                                                                                              |
| Extra Attributes (JSON) | Long text (JSON) | No       | `{}`            | More SCIM attributes as JSON, for example `displayName`, `title`, `userType`, `active`, `timezone`, `password`, `name`, `phoneNumbers`, `roles`, `preferredLanguage`, `locale`. `employeeNumber`, `costCenter`, `organization`, `division`, `department` and `managerId` are sent in the SCIM enterprise extension, and `startDate` in the Slack profile extension. |

### How it works

* Builds one SCIM user from Username, Emails and the extra attributes and sends it once per workflow run, regardless of how many assets were collected.
* If Slack answers with a non-success status, the job fails with `Slack SCIM create user failed with status <code>: <response text>`. The run stops and the error appears under **Error Details** in **History**.
* Passes the same assets it received to the next node.

### Example

```json
{
  "Username": "jane.doe",
  "Emails": [{"value": "jane.doe@example.com", "type": "work", "primary": true}],
  "Extra Attributes (JSON)": {"displayName": "Jane Doe", "title": "Analyst", "department": "Security"}
}
```

### 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>Update Users (Enterprise)</strong></td><td>Update users through SCIM.</td><td><a href="broken://pages/5f5b8a8d77cd82fa4e9180bdac7a6808ee72444e">Broken link</a></td></tr><tr><td><strong>Suspend Users (Enterprise)</strong></td><td>Suspend users through SCIM.</td><td><a href="broken://pages/2464ca02fddf29e6c8982917196656b16a5c4568">Broken link</a></td></tr></tbody></table>

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