# 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 Xopero ONE

{% hint style="danger" %}
Adding additional credentials in **Xopero ONE** does not automatically integrate them into backup tasks— you <mark style="color:$danger;">**must**</mark> enable new credentials for use in a backup plan.
{% endhint %}

{% stepper %}
{% step %}
Login to [**XMS**](#user-content-fn-1)[^1] and open the **DevOps** tab. Find your **Bitbucket DC** project (this must be done for each project <mark style="color:$danger;">individually</mark>) and click **Edit** in the bottom-left corner of the project tile.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FINFFWM5ouUvoOp24HWrs%2Fimage.png?alt=media&#x26;token=c242fff5-c316-452d-a6de-c9aec3b6001f" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FIopIMku2b6wXeWZC8EJF%2Fimage.png?alt=media&#x26;token=8bba2d01-4c6f-41c4-a3be-ea6834be8767" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FNFdn6UCPm9qPROBUkQRj%2Fimage.png?alt=media&#x26;token=8f29eb71-ec14-47c3-acbe-d1cb826deb0c" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## Enabling Bitbucket DC credentials for backup

{% stepper %}
{% step %}
In [**XMS**](#user-content-fn-1)[^1], open the **Plans** tab and click **Add plan**, or select **Edit plan** if you already have one.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2Fg8QUg1HAuziERAZwKcIv%2Fimage.png?alt=media&#x26;token=d22ed15b-8063-4efb-ae79-a254ff7d31e0" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FwJO21QpR2z3bzOnH47aD%2Fimage.png?alt=media&#x26;token=9bdabec6-d9a0-4fee-8300-7873b23235ad" 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://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FiXMYXRtHFj74Wdp9RhCX%2Fimage.png?alt=media&#x26;token=c6fb127b-405f-45fe-9407-61bda5aea8b8" 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://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FcEoIAnYGqDv3Eq6fU4vU%2Fimage.png?alt=media&#x26;token=94d0711c-1739-446f-acd0-6a676f71aece" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

[^1]: Xopero ONE Management Service
