> 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/tenable/create-user-on-tenable.md).

# Create User on Tenable

Creates a Tenable user account for each matched user asset. The job generates a random first-login password for every account; no shared or configured password is used.

### Before you begin

* An API key pair for Tenable Vulnerability Management: an **Access Key** and a **Secret Key**, generated in the Tenable console under Settings - My Account - API Keys. The default **Domain** is `https://cloud.tenable.com`.
* Connection defaults (Domain, Access Key, Secret Key, Timeout, Verify SSL) can be saved once under **Action Center** > **Settings**. See [Action Center Settings](broken://pages/742bb94503961e05b5eaa95572a142f73cd7ecb2).
* Asset type: user only. Required columns: `Email`, `Username`, `FirstName`, `LastName`.
* The value of the chosen **Username Field** becomes the Tenable username and email address.
* The user that owns the API keys needs the Administrator role \[64] for user actions. Tenable answers 403 otherwise.

### Settings

The job node shows these fields.

| Setting             | Type           | Required | Default                     | Description                                                                                                                |
| ------------------- | -------------- | -------- | --------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Domain              | URL            | No       | <https://cloud.tenable.com> | Base URL of Tenable. Example: `https://cloud.tenable.com`.                                                                 |
| Access Key          | Sensitive text | Yes      | None                        | Generated in the Tenable console under Settings - My Account - API Keys. Masked after saving.                              |
| Secret Key          | Sensitive text | Yes      | None                        | The secret key of the same key pair. Masked after saving.                                                                  |
| Timeout             | Number         | No       | 30                          | Request timeout in seconds.                                                                                                |
| Verify SSL          | Boolean        | No       | On                          | Verify the TLS certificate of the Tenable host.                                                                            |
| Retry on Rate Limit | Boolean        | No       | On                          | Retry a request once when Tenable answers 429, waiting for the `retry-after` header (at most 60 seconds).                  |
| Maximum Assets      | Number         | No       | 500                         | Upper bound on how many assets a single run may act on. Extra assets are logged and skipped.                               |
| Username Field      | Choice         | No       | Email                       | Asset column matched against the Tenable username. Choices: `Email`, `Username`. Tenable usernames are email addresses.    |
| Role                | Choice         | No       | 16                          | Tenable legacy role number. Choices: `16` Basic, `24` Scan Operator, `32` Standard, `40` Scan Manager, `64` Administrator. |
| Skip Existing Users | Boolean        | No       | On                          | Do not attempt to create a user that already exists. Turning this off makes re-runs fail.                                  |

### How it works

* The job reads the Tenable user list once and compares it with the **Username Field** of each user asset (cut to **Maximum Assets**). Assets without a value are skipped.
* With **Skip Existing Users** on, users that already exist are skipped. With it off, the job tries to create them and Tenable rejects the request, which counts as a failure for that user.
* For each remaining user the job sends `POST /users` with the username, the email (same value), the role number, a display name built from `FirstName` and `LastName` (the username when both are empty) and a generated 20-character password containing lowercase, uppercase, digits and symbols. The password is not stored or logged by the job, so new users must reset it.
* A failure for one user is logged and the job continues. If every attempted user fails, the job fails. If only some fail, the job succeeds and logs the counts. If nothing needs creating, the job logs that and ends.
* The job passes the matched assets it received on to the next node unchanged.

### Example

Create Basic-role accounts for new employees found by your condition.

| Setting             | Value                       |
| ------------------- | --------------------------- |
| Domain              | `https://cloud.tenable.com` |
| Access Key          | `YOUR_ACCESS_KEY`           |
| Secret Key          | `YOUR_SECRET_KEY`           |
| Username Field      | `Email`                     |
| Role                | `16`                        |
| Skip Existing Users | On                          |

### 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/ed78ac5bacec4909acb71c776dd17d62cfa78748">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save connection defaults for Tenable jobs.</td><td><a href="broken://pages/742bb94503961e05b5eaa95572a142f73cd7ecb2">Broken link</a></td></tr><tr><td><strong>Assign Role to User on Tenable</strong></td><td>Assign a Tenable RBAC role to each matched user asset.</td><td><a href="broken://pages/7eb76055257f4c30da9ba8c260dc779348252598">Broken link</a></td></tr><tr><td><strong>Assign Group to User on Tenable</strong></td><td>Add each matched user asset to a Tenable user group.</td><td><a href="broken://pages/6579fa95e32cbd3264153eadcf9d238bafaaaa18">Broken link</a></td></tr></tbody></table>

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