> For the complete documentation index, see [llms.txt](https://docs.balkan.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.balkan.id/getting-started/setting-up-your-tenant/application-integrations/direct-application-integrations/jetbrains-integration-setup.md).

# JetBrains Integration Setup

### Getting Started

Use this guide to connect JetBrains to your BalkanID tenant. You will need credentials from your JetBrains Account and access to the Integrations section in BalkanID.

{% hint style="info" %}
The JetBrains Account API is available to organization accounts. The Company Profile ID is shown only to organization administrators and primary contacts, so a personal JetBrains account cannot be connected.
{% endhint %}

#### Requirements:

Before you begin, collect the following values from JetBrains:

* **API Key**
* **Company Profile ID**

### Configure JetBrains within your BalkanID tenant

1. To find the **API Key** and **Company Profile ID**, sign in to your JetBrains Account at [account.jetbrains.com](https://account.jetbrains.com).
2. Open your organization's profile. The **Company Profile ID** is the customer code shown next to your organization name. Copy it.
3. Go to the [API tokens page](https://jb.gg/console/jba-api) and generate a token. Copy it — this is your **API Key**, and JetBrains shows it only once.
4. In BalkanID, go to *Integrations* and click **Add integration**.

<div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2Fr4w6cHDBAUlYwWOnLHpb%2Fjetbrains-add-integration.png?alt=media" alt="The BalkanID Integrations page with the Add integration button in the top right"><figcaption><p>Integrations</p></figcaption></figure></div>

5. Search for **JetBrains**, select it, and click **Next**.

<div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FMiZse1E7obJ1QxVQ8Ske%2Fjetbrains-connect-a-new-application.png?alt=media" alt="The JetBrains application selected in the Connect a new application step"><figcaption><p>Connect a new application</p></figcaption></figure></div>

6. Set the *Primary application owner* and a *Description*, if any. Under **Select Extraction Type**, choose **Direct Configuration** and paste your **API Key** and **Company Profile ID** into the corresponding fields.

<div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FQ9Bzfa7INQjXLsYUyNxx%2Fjetbrains-direct-configuration.png?alt=media" alt="The Direct Configuration step showing the API Key and Company Profile ID fields"><figcaption><p>Direct Configuration</p></figcaption></figure></div>

7. Click Next to move onto Optional Configuration.
8. Fill **Optional Configuration**, if required.

<div data-with-frame="true"><figure><img src="https://2975852473-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVGYwk8aSk5yI1GDPEW9%2Fuploads%2FZbipc8nl8LTFl5YsVIaj%2Foptional-configuration.png?alt=media" alt="The Optional Configuration step"><figcaption><p>Optional Configuration</p></figcaption></figure></div>

9. Once you have filled in the information, click **Save**. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the Integrations page. When data is available, the integration Status column will read **Connected** and the integration Message will read **Data available**.

### Integration Scopes

The JetBrains Account API has no per-scope permissions. A token inherits the role of the JetBrains account that created it, and that role decides what BalkanID can read.

| Read Only Scopes                                                                                                                                                                                                 | Lifecycle Management Scopes |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
| **Organization administrator or primary contact (Read)** — reads the organization's licenses, the users those licenses are assigned to, the JetBrains products they grant, and the teams the licenses belong to. | N/A                         |

### What BalkanID syncs

BalkanID reads your organization's JetBrains licenses and builds the access picture from them:

* **Users** — the people your JetBrains licenses are assigned to, identified by email address.
* **Products** — the JetBrains products your organization holds licenses for, with total, assigned and available seat counts.
* **Teams** — the teams your licenses belong to.

Each user is linked to every product they hold a license for, and to their team. Licence details such as the validity date, trial status and last-seen date are carried on those links.

Because JetBrains identifies license holders only by email address, someone in your organization who holds no JetBrains license does not appear in BalkanID. Licenses assigned to a license server rather than to a person count toward a product's assigned seats but produce no user.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.balkan.id/getting-started/setting-up-your-tenant/application-integrations/direct-application-integrations/jetbrains-integration-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
