> 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/docker-hub-integration-setup.md).

# Docker Hub Integration Setup

### Getting Started

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

Docker Hub requires two separate credentials. The SCIM API token provides user records and their status, and the organization access token provides organization membership, teams and roles. Both are required.

{% hint style="info" %}
SCIM is available on a Docker Business subscription with single sign-on configured. Organization access tokens require a Docker Team or Business subscription, and you must be an owner of the organization.
{% endhint %}

#### Requirements:

Before you begin, collect the following values from Docker:

* **SCIM URL**
* **SCIM API Token**
* **Organization Name**
* **Organization Access Token**

### Configure Docker Hub within your BalkanID tenant

1. To find the **SCIM URL** and **SCIM API Token**, sign in to [Docker Home](https://app.docker.com) and select **Identity & auth**, then **SSO and SCIM**.
2. In the **SSO connections** table, select the **Actions** icon for your connection, then select **Setup SCIM**.
3. Copy the **SCIM Base URL** and **API Token** values. The base URL is the value BalkanID asks for as **SCIM URL**.
4. To create the **Organization Access Token**, select your organization in Docker Home, then select **Identity & auth** followed by **Access tokens**.
5. Select **Generate access token**, give it a label and an expiration date, then expand the **Organization** dropdown and enable **Member Read** and **Group Read** (see [Integration Scopes](#integration-scopes) below).
6. Select **Generate token** and copy the value. Docker shows it only once. Your **Organization Name** is the organization's name as it appears in Docker Home.
7. In BalkanID, go to **Integrations** and select **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%2FIkxPYj5IcJE5YXNGguFQ%2Fdockerhub-add-integration.png?alt=media" alt="The Integrations page in BalkanID with the Add integration button in the top right"><figcaption><p>Integrations</p></figcaption></figure></div>

8. Search for Docker Hub, 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%2Fc9KqjoXssX9h5oWj1tah%2Fdockerhub-connect-application.png?alt=media" alt="The Connect a new application step with Docker Hub selected"><figcaption><p>Connect a new application</p></figcaption></figure></div>

9. Set the primary application owner, and a description if you want one. Under **Select Extraction Type**, choose **Direct Configuration** and paste the four values you collected into the corresponding fields, then 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%2FppI8vyW87R7gF9OByXpf%2Fdockerhub-direct-configuration.png?alt=media" alt="The Direct Configuration fields for Docker Hub: SCIM URL, SCIM API Token, Organization Name and Organization Access Token"><figcaption><p>Direct Configuration</p></figcaption></figure></div>

10. 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 showing reviewer settings and fulfillment options"><figcaption><p>Optional Configuration</p></figcaption></figure></div>

11. 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**.

### What BalkanID extracts

| Type                   | Description                                                                                  |
| ---------------------- | -------------------------------------------------------------------------------------------- |
| **Users**              | Every member of the organization, including accounts that were not provisioned through SCIM. |
| **Teams**              | The organization's teams, and each user's membership of them.                                |
| **Organization roles** | Each member's role in the organization — owner, editor or member.                            |

Docker does not expose team-to-repository permissions for reading, so repository-level access is not extracted.

### Integration Scopes

| Read Only Scopes                                                                         | Lifecycle Management Scopes |
| ---------------------------------------------------------------------------------------- | --------------------------- |
| **Member Read** — organization members, their email addresses, roles and team membership | N/A                         |
| **Group Read** — the organization's teams                                                | N/A                         |


---

# 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/docker-hub-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.
