# Additional Bitbucket DC credentials

## Bitbucket DC account preparation

In **Bitbucket DC**, you can create user accounts and organize them into groups. This makes it easier to manage the organization and permissions.

💡 Learn more about users and groups in the official [**Bitbucket DC** documentation](https://confluence.atlassian.com/bitbucketserver/users-and-groups-776640439.html).

***

## HTTP access token preparation

{% hint style="info" %}
**HTTP** access tokens in **Bitbucket DC** can be used instead of passwords to authenticate with **Git**.
{% endhint %}

#### To create an HTTP access token for your user account in Bitbucket DC:

1. Click your **profile picture** and go to **Manage account** > **HTTP access tokens**.
2. Select **Create token**.
3. Set the token name, permissions, and expiry.

💡 Learn more about **HTTP** access tokens in official [**Bitbucket DC** documentation](https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html).

***

## Adding Bitbucket DC credentials to GitProtect

{% hint style="danger" %}
Adding additional credentials in **GitProtect** does not automatically integrate them into backup tasks—you **must** enable new credentials for use in a backup plan.
{% endhint %}

{% stepper %}
{% step %}
Login to **GitProtect Management Service** and open the **Bitbucket** tab (**DevOps** > **Bitbucket**). Find your **Bitbucket DC** project (this must be done for each project individually) and click **Edit** in the bottom-left corner of the project tile.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-1980e9eed705ae93d8b00dff8a689be3bcc92f90%2Fimage%20(996).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Go to the **Additional credentials** section and click it.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-d8cb820917718eb1fb22226443c62f7209959292%2Fimage%20(995).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click the **Add new** button, enter the credentials, and then click **Save** to finish.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-2fa158173173e75125ccb1b07fd7a4c9ff44efff%2Fimage%20(997).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## Enabling Bitbucket DC credentials for backup

{% stepper %}
{% step %}
In **GitProtect Management Service**, open the **Plans** tab and click **Add plan**, or select **Edit plan** if you already have one.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-d9ad38c9fec2bcb7fa0c06bf9ee3de15c4e9332b%2Fimage%20(1012).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Scroll down to **Advanced settings**, click **Edit**, and enable the **Additional git credentials** switch.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-85e703d2d3dc9173663960f0947193e6018a3e94%2Fimage%20(1013).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The system will display all additional accounts available for the selected organization. Toggle the switch **ON** next to the accounts you want to use, and then click the **Save** button.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-92263e39da78188bdda54a9c4c710f7a7d52f700%2Fimage%20(1003).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Back in the **Edit backup plan** panel, click the **Save** button to save your backup plan settings. The backup plan will now run using the selected additional **Bitbucket DC** accounts.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-ce109d9dbd0b738685cf44defc3b2498a4e7ea47%2Fimage%20(1014).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
