> ## Documentation Index
> Fetch the complete documentation index at: https://conductorone-docs-iga-1271.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up a GitLab connector

> ConductorOne provides identity governance for GitLab. Integrate your GitLab instance with ConductorOne to run user access reviews (UARs) and enable just-in-time access requests.

<Tip>
  **A newer version of this connector is available.** If you're setting up a GitLab connector with ConductorOne for the first time, use the [v2 version](/baton/gitlab).
</Tip>

<Warning>
  This version of the GitLab connector does not support account provisioning in GitLab Data Center. Please go to the [GitLab Data Center](https://github.com/ConductorOne/baton-gitlab) connector for more information.
</Warning>

## Capabilities

| Resource | Sync                                                          | Provision |
| :------- | :------------------------------------------------------------ | :-------- |
| Accounts | <Icon icon="square-check" iconType="solid" color="#65DE23" /> |           |
| Projects | <Icon icon="square-check" iconType="solid" color="#65DE23" /> |           |
| Groups   | <Icon icon="square-check" iconType="solid" color="#65DE23" /> |           |

## Gather GitLab credentials

Configuring the connector requires you to pass in credentials generated in GitLab. Gather these credentials before you move on.

<Warning>
  A user with group **Owner** access in GitLab must perform this task.
</Warning>

### Look up your GitLab group

<Steps>
  <Step>
    In GitLab, click **Menu** > **Groups** > **Your Groups**.
  </Step>

  <Step>
    Click on the group you wish to connect to ConductorOne.
  </Step>

  <Step>
    Make a note of the Group Name or Group ID.
  </Step>

  <Step>
    <Frame>
      <img src="https://mintcdn.com/conductorone-docs-iga-1271/kha0QZI-xcUM4UTO/images/product/assets/gitlab-1.png?fit=max&auto=format&n=kha0QZI-xcUM4UTO&q=85&s=def7cc0b8c922d5dcfc897b6c7f630f4" alt="" width="2848" height="884" data-path="images/product/assets/gitlab-1.png" />
    </Frame>
  </Step>
</Steps>

### Create a personal access token

<Steps>
  <Step>
    In the GitLab menu bar, click your profile photo then click **Edit profile**.
  </Step>

  <Step>
    In the User Settings menu, click **Access Tokens**.
  </Step>

  <Step>
    Give your token a name and set an expiration date.

    <Frame>
      <img src="https://mintcdn.com/conductorone-docs-iga-1271/kha0QZI-xcUM4UTO/images/product/assets/gitlab-5.png?fit=max&auto=format&n=kha0QZI-xcUM4UTO&q=85&s=94977a0cb910a8b727f28862966a42b7" alt="" width="2032" height="626" data-path="images/product/assets/gitlab-5.png" />
    </Frame>
  </Step>

  <Step>
    In the **Select scopes** area, select **read\_api**.
  </Step>

  <Step>
    Click **Create personal access token**.
  </Step>

  <Step>
    Carefully copy and save the newly created token.
  </Step>
</Steps>

**That's it!** Next, move on to the connector configuration instructions.

## Configure the GitLab connector

<Warning>
  To complete this task, you'll need:

  * The **Connector Administrator** or **Super Administrator** role in ConductorOne
  * Access to the set of GitLab credentials generated by following the instructions above
</Warning>

<Tabs>
  <Tab title="Cloud-hosted">
    **Follow these instructions to use a built-in, no-code connector hosted by ConductorOne.**

    <Steps>
      <Step>
        In ConductorOne, navigate to **Integrations** > **Connectors** and click **Add connector**.
      </Step>

      <Step>
        Search for **GitLab** and click **Add**.
      </Step>

      <Step>
        Choose how to set up the new GitLab connector:

        * Add the connector to a currently unmanaged app (select from the list of apps that were discovered in your identity, SSO, or federation provider that aren't yet managed with ConductorOne)

        * Add the connector to a managed app (select from the list of existing managed apps)

        * Create a new managed app
      </Step>

      <Step>
        Set the owner for this connector. You can manage the connector yourself, or choose someone else from the list of ConductorOne users. Setting multiple owners is allowed.

        If you choose someone else, ConductorOne will notify the new connector owner by email that their help is needed to complete the setup process.
      </Step>

      <Step>
        Click **Next**.
      </Step>

      <Step>
        Find the **Settings** area of the page and click **Edit**.
      </Step>

      <Step>
        In the **Group** field, enter the name of your GitLab group.
      </Step>

      <Step>
        Paste the token you into the **Personal access token** field.
      </Step>

      <Step>
        **Optional.** If you need to point this connector to a private URL (such as a self-managed GitLab instance), enter the target URL in the **URL** field.
      </Step>

      <Step>
        Click **Save**.
      </Step>

      <Step>
        The connector's label changes to **Syncing**, followed by **Connected**. You can view the logs to ensure that information is syncing.
      </Step>
    </Steps>

    **That's it!** Your GitLab connector is now pulling access data into ConductorOne.
  </Tab>

  <Tab title="Self-hosted">
    **Follow these instructions to use a connector, hosted and run in your own environment.**

    *Self-hosted connector not currently available.*
  </Tab>
</Tabs>
