Managing JIT provisioning
Once you’ve set up GitLab authentication and provisioning with the Just-in-Time (JIT) provisioning mode, you can set or change JIT provisioning mode options.
You need the global Administer System permission in SonarQube Server to perform this setup.
Setting up the group synchronization
With the JIT provisioning mode, you can enable group synchronization. The group synchronization requires that you manually create the user groups in SonarQube Server: see below.
If you enable the group synchronization, you cannot manage group memberships manually and existing manually added group memberships of JIT-provisioned users are reset in SonarQube Server during synchronization.
Go to Administration > Configuration > General Settings > Authentication > GitLab.
On the far right of App ID, select Edit.
In the dialog, select or unselect the Synchronize user groups option.
Save.
Setting the Allowed groups
Starting from the Developer Edition, you can restrict access to SonarQube Server by defining Allowed groups. An Allowed group is a GitLab root group (a group with no parent): only members of the Allowed group and all its subgroups can authenticate to SonarQube Server.
To set the Allowed groups:
Go to Administration > Configuration > General Settings > Authentication > GitLab.
In the Provisioning > Just-in-Time provisioning > Allowed groups, enter the root group slug as it appears in the GitLab URL. For instance, if the first Allowed group URL is
https://gitlab.com/my-root-group
, then entermy-root-group
. A new text box is added underneath.Enter the second Allowed group slug, etc.
Blocking/Authorizing the sign-up of new users
You can block the signup of new users with SonarQube. This may be useful if you want to manage user provisioning through an API.
To block or authorize the sign-up of new users with SonarQube Server:
Go to Administration > Configuration > General Settings > Authentication > GitLab.
In the Provisioning > Just-in-Time provisioning section, unselect or select Allow users to sign up.
Related pages
Last updated
Was this helpful?