# Adding GitLab (self-managed) organization to GitProtect

## Using Personal Access Token (PAT)

{% stepper %}
{% step %}
Log in to **GitProtect Management Service**, open the **DevOps** tab on the left side of the window, and select **GitLab** from the list.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fe9F5nL41J0rHn2ipJLB5%2Fimage.png?alt=media&#x26;token=5b46d6ca-33db-41f1-9e29-e98692e977a0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click the **Connect** button under **GitLab Self-managed**.

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

{% step %}
Set your authentication method.

1. In **Authentication**, select **GitLab Self-Managed**.
2. In **Settings**, enter your **GitLab** service IP address.
3. Add or select **PAT** from the **Password Manager**.
4. Choose whether **GitProtect** should automatically add new repositories to your backup and whether it should include **GitLab** groups in the backup.

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

{% step %}
Configure your repository sync and default worker. Specify hours for synchronization, or set a time interval for automatic updates.

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

{% step %}
Click **Proceed** to complete adding your **GitLab** (self-managed) organization and grant **GitProtect** access to the specified resources.
{% endstep %}
{% endstepper %}
