Skip to main content
Lumos offers five GitLab cards in Integrations: GitLab, GitLab (Multi-Auth), GitLab (Token), GitLab Self-Managed, and GitLab Self-Managed (On Prem). This article covers GitLab Self-Managed, for a self-managed instance Lumos can reach over the network. For an instance Lumos can’t reach directly, use the GitLab Self-Managed (On Prem) card. It works at the instance level and can additionally create, block, and delete users. To connect a GitLab.com group with a token, use GitLab (Token). To authorize in the browser instead, use GitLab (OAuth).

After this article

You will be able to connect a self-managed GitLab instance to Lumos to sync users, groups, group roles, projects, and project roles, then provision, deprovision, and review that access from Lumos.

Capabilities

Because this connector works at the instance level, it can also create, block, and delete users directly on the instance. Creating a user whose email already exists links the existing account instead of creating a second one.

Activity Tracking

Status: Supported. Lumos tracks each user’s last sign-in (current_sign_in_at, or last_sign_in_at) and last activity date (last_activity_on). Users who have never logged in have no activity data.

Required plan and roles

  • GitLab role: you must be an administrator on the GitLab instance. Lumos checks that the token belongs to an administrator, and the connection fails otherwise.
  • Token type: a personal access token with the api scope, created by that administrator.
  • Base URL: the connection requires your instance’s Account Base URL, including the schema.
  • Network access: Lumos must be able to reach your instance’s base URL. If the instance sits behind a firewall, VPN, or IP restrictions, allowlist the Lumos IP addresses first, or use the GitLab Self-Managed (On Prem) card.
  • Lumos role: an Admin in Lumos. Only Admins can connect integrations (see Lumos roles).

Read-only access vs provisioning

Is read-only possible? No. GitLab Self-Hosted authenticates with an administrator’s personal access token that requires the api scope, and no narrower read-only scope is described for this instance-level connector. What full provisioning requires. A personal access token with the api scope, created by a GitLab administrator, plus your instance’s Account Base URL. Follow the steps below. Watch out for. Because this connector works at the instance level, it can also create, block, and delete users directly on the instance, in addition to the group- and project-level actions available on the GitLab.com connectors. Custom member role sync requires GitLab Ultimate.

Instructions

Phase 1: Create an access token in GitLab
  1. Log in to your GitLab instance as an administrator.
  2. Click your profile picture in the top right, then go to Edit profile > Personal access tokens.
  3. Click Add new token.
  4. Give the token a name and select the api scope.
  5. Click Create token, then copy the token value.
Phase 2: Connect in Lumos
  1. Find the GitLab Self-Managed card in your Lumos integrations (reconnect an existing card or add a new one).
  2. Fill in the connection fields:
    • Account Base URL: the unique identifier for your GitLab instance. Copy it from the browser while logged in. A correct base URL looks like https://gitlab.<your-organization>.com or an IP address such as http://192.168.1.100:8080. Include the schema (https:// or http://). Port numbers and a base path are supported.
    • GitLab PAT: the personal access token from Phase 1.
  3. Complete the connection.
Connecting or reconnecting the integration starts a sync right away, and your GitLab users, groups, and projects appear in Lumos when it finishes. After that, Lumos syncs on its regular integration sync schedule. To refresh sooner, see Triggering Syncs Deep Dive.

API Endpoints Used

Troubleshooting

Can’t connect the integration. Confirm the Account Base URL includes the schema (https:// or http://) and points at your instance. A token from an account that isn’t an instance administrator fails with an error such as Token does not belong to an admin user, or a generic connection error on newer GitLab versions. Create a new token from an administrator account. Connected, but provisioning or syncs fail. Lumos doesn’t block the connection when the token is missing the api scope, but later reads and writes fail without it. Create a new token with the api scope and update the connection. No activity data for some users. Users who have never logged in to the instance have no last sign-in or activity date. Connecting hangs and then errors. Usually the instance base URL is unreachable from Lumos (behind Zscaler, a VPN, or IP restrictions), so the request silently times out and surfaces as a generic error after a delay. Allowlist the Lumos IP addresses so Lumos can reach your GitLab instance.