> 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/adapters/j/jira-self-hosted.md).

# Jira Self Hosted

Jira Self-Hosted is the Jira Server or Data Center installation that you run yourself. OctoXLabs reads its user accounts and adds them to the user inventory.

## Use cases

* **Find Jira users that have no directory account.** List Jira users that are not found in Active Directory. How accounts are matched depends on your user merge settings.

```
Adapters = jira-self-hosted-user AND NOT Adapters = active-directory
```

* **Review Jira users by email domain.** Domain is derived from the email address. List accounts that use an external domain.

```
Adapters = jira-self-hosted-user AND NOT Domain = <your domain>
```

## Before you begin

### Network

| Source              | Destination           | Port               | Protocol |
| ------------------- | --------------------- | ------------------ | -------- |
| OctoXLabs connector | Self-hosted Jira host | 443 (configurable) | HTTPS    |

The port is the value of the **Port** parameter. Clear **Is Secure** to use HTTP.

### Required permissions

| Scope or role                    | Permission | Needed for    |
| -------------------------------- | ---------- | ------------- |
| Browse Users (global permission) | Allow      | Listing users |

The baseline states that the account must have the Browse Users global permission.

## Create credentials in Jira

{% stepper %}
{% step %}

### Pick or create the account

Use a Jira user that can list users.
{% endstep %}

{% step %}

### Grant Browse Users

Make sure the account has the **Browse Users** global permission.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type    | Default | Description                                              |
| ---------- | -------- | ------- | ------- | -------------------------------------------------------- |
| IP         | Yes      | String  | None    | IP address or hostname of the self-hosted Jira instance. |
| Port       | No       | Integer | 443     | Port number.                                             |
| Username   | Yes      | String  | None    | Jira username with permission to list users.             |
| Password   | Yes      | String  | None    | Password of that user.                                   |
| Is Secure? | No       | Boolean | True    | Connect over HTTPS.                                      |
| Timeout    | No       | Integer | 30      | Seconds to wait for an API response.                     |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                                                            |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Failed to fetch test data: {status}                            | The connection test got a status other than 200.                                        | Check host, port, SSL setting, credentials and the Browse Users permission.                    |
| Invalid JSON response (status={status})                        | The connection test response was not JSON.                                              | Check that the host and port point to Jira and not to a proxy or login page.                   |
| Status Code: `, followed by URL, Method and the response body` | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history

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