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
apiscope, 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 theapi 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- Log in to your GitLab instance as an administrator.
- Click your profile picture in the top right, then go to Edit profile > Personal access tokens.
- Click Add new token.
- Give the token a name and select the
apiscope. - Click Create token, then copy the token value.
- Find the GitLab Self-Managed card in your Lumos integrations (reconnect an existing card or add a new one).
- 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>.comor an IP address such ashttp://192.168.1.100:8080. Include the schema (https://orhttp://). Port numbers and a base path are supported. - GitLab PAT: the personal access token from Phase 1.
- Account Base URL: the unique identifier for your GitLab instance. Copy it from the browser while logged in. A correct base URL looks like
- Complete the connection.
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.