> 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/jira/create-user-on-jira-self-hosted.md).

# Create User on Jira Self Hosted

Creates one new user on a Jira Self-Hosted instance by calling the Jira user API with the username, email address and display name you enter. The job does not read user data from the collected assets.

### Before you begin

* A Jira Self-Hosted base URL and the username and password of an admin account.
* Accepted asset type: `user`. No required columns.
* Defaults you saved for this job in [Action Center Settings](broken://pages/c24f789e38de30d1826122b3a82f349153f232b9) pre-fill the node form. Options you leave out are filled from them when you save the node.

### Settings

These are the fields of the job node form.

| Setting             | Type    | Required | Default | Description                                                                                                                                          |
| ------------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Jira Base URL       | Text    | Yes      | None    | Full Jira URL, for example `https://jira.company.com`.                                                                                               |
| Admin Username      | Text    | Yes      | None    | Username of the admin performing the creation.                                                                                                       |
| Admin Password      | Text    | Yes      | None    | Password of the admin performing the creation. Secret, but shown as plain text (not masked).                                                         |
| Email Address       | Email   | Yes      | None    | Email address of the new user.                                                                                                                       |
| Username            | Text    | Yes      | None    | Username of the new user.                                                                                                                            |
| Display Name        | Text    | Yes      | None    | Full name of the new user.                                                                                                                           |
| New User's Password | Text    | No       | None    | Initial password. If you leave it empty, the password is randomly generated (per the field help text). Secret, but shown as plain text (not masked). |
| Active User         | Boolean | No       | true    | Whether the user is active.                                                                                                                          |
| Application Keys    | Text    | No       | None    | Comma separated list of applications, for example `jira-core, jira-software`.                                                                        |

### How it works

* The job sends one `POST` to `<Jira Base URL>/rest/api/2/user` with email, username, display name and the active flag, authenticated with the admin username and password.
* The password and the application keys are sent only when you fill them in.
* The values are fixed per node. The job creates the same single user whatever the collected assets are.
* If Jira does not accept the request, the job fails with `Jira create user failed with status <code>` and the response text.
* The assets pass on to the next node unchanged.

### Example

Create an active user with access to Jira Software.

| Setting          | Value                      |
| ---------------- | -------------------------- |
| Jira Base URL    | `https://jira.example.com` |
| Admin Username   | `admin`                    |
| Admin Password   | `YOUR_API_TOKEN`           |
| Email Address    | `new.user@example.com`     |
| Username         | `new.user`                 |
| Display Name     | `New User`                 |
| Application Keys | `jira-software`            |

### 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/08e1c051f3c3fc15c184408533696e2939698d56">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/c24f789e38de30d1826122b3a82f349153f232b9">Broken link</a></td></tr><tr><td><strong>Create User on Jira Cloud</strong></td><td>The same job for Jira Cloud.</td><td><a href="broken://pages/3fed83004d26f259b0c69307cf3f72781e229d2f">Broken link</a></td></tr><tr><td><strong>Delete User on Jira Self-Hosted</strong></td><td>Delete users on Jira Self-Hosted.</td><td><a href="broken://pages/24ca4df46d956a06285cc6a2c3177a9ea0237f57">Broken link</a></td></tr></tbody></table>

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