> 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/jetbrains-account-management.md).

# JetBrains Account Management

JetBrains Account is where an organization manages its JetBrains product licenses. OctoXLabs reads the licenses of your organization from the JetBrains Account API and collects them as license assets.

## Use cases

* Review the licenses that JetBrains Account holds for your organization. Filter the asset list by the adapter name `jetbrains-account-management`.

## Before you begin

### Network

| Source              | Destination           | Port | Protocol |
| ------------------- | --------------------- | ---- | -------- |
| OctoXLabs connector | account.jetbrains.com | 443  | HTTPS    |

The baseline states that the host is fixed, so no address is entered. If a proxy is set, requests go through it.

### Required permissions

| Scope or role              | Permission                                            | Needed for             |
| -------------------------- | ----------------------------------------------------- | ---------------------- |
| Organization administrator | Enable the JetBrains Account API and generate a token | Creating the API token |

## Create credentials in JetBrains Account

{% stepper %}
{% step %}

### Enable the API

An organization administrator opens the **Administration** page of the organization and enables the JetBrains Account API.
{% endstep %}

{% step %}

### Generate a token

On the same page, click **Generate Token** and copy the token. It is shown only once. Generating a new token invalidates the previous one.
{% endstep %}

{% step %}

### Find the customer code

The customer code is the ID of your organization. It is the number next to the organization name in your JetBrains Account.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                  |
| ------------- | -------- | ------- | ------- | ------------------------------------------------------------ |
| API Key       | Yes      | String  | None    | JetBrains Account API token, sent in the `X-Api-Key` header. |
| Customer Code | Yes      | String  | None    | Organization ID, sent in the `X-Customer-Code` header.       |
| Per Page      | No       | Integer | 100     | Number of licenses requested in one page.                    |
| Proxy         | No       | String  | None    | Proxy address, for example `proxy.company.com:8080`.         |
| Timeout       | No       | Integer | 30      | Seconds to wait for an API response.                         |

## Troubleshooting

| Error message | Cause                                                                   | Fix                                                      |
| ------------- | ----------------------------------------------------------------------- | -------------------------------------------------------- |
| Not verified  | The connector source was not found, so error texts could not be listed. | Run the connection test and read the message it returns. |

## Change history

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