# Additional GitLab credentials

## GitLab account preparation <a href="#additional_account" id="additional_account"></a>

The best way to add an additional account to your **GitLab** environment is by adding a new user to the dedicated **group**. This way, the added user automatically gains access to all projects within the group.

Alternatively, you can add a user to individual projects separately.

💡 For detailed information about organization membership, see the [official **GitLab** documentation](https://docs.gitlab.com/user/project/members).

***

## Adding GitLab 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**, open the **GitLab** tab (**DevOps** > **GitLab**) and click **Edit** in the bottom-left corner of the selected **GitLab** repository tile.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-630231102d8982cbd46d32b4dc7632ae48c7dc72%2Fimage%20(1008).png?alt=media" alt="" width="354"><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-7689f496f7d6762e9879ba42327d90651c94c18a%2Fimage%20(1010).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-7ce5c8a6a473a612c532c427de2bc480f8027f8d%2Fimage%20(1011).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## Enabling GitLab 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 **GitLab** 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 %}
