I am facing a strange “issue”, I am not sure if it is an issue or not, I have searched over this community and Google without any success.
I have installed a POC for SonarQube using docker, added GitLab ALM integration and it works as expected (I can connect to SonarQube using GitLab ).
When creating a project with “admin” user, I can import it with GitLab (with several steps as creating CI/CD var, etc). But when using “GitLab” account, I can only create project mannualy.
Am I missing something ? I would like to be able to import project from GitLab without giving admin right to all users
Could you please log as admin, and show us what are the project creation permissions for the account you are trying to create a project from? (Including the groups it’s in)
I am using a fresh instance too (using docker) so I don’t know what I am missing. I have only configured GitLab integration and try to create a project.
Yes, API call is correct (I have removed url here)
Group sync don’t matter, as long as your user get the Create Project permission. @Philippe_Perrin or @Jeremy_Davis , do you think this issue could be in the UI only? I think the condition to display the menu is “there is a valid gitlab configuration + I have the permission to create a project”
As we can see in the screenshot you provided, the sonar-users group doesn’t have the Create projects permission. I’m not exactly sure how you created this user, but it probably has fallen into the default group with default permissions.
Log out from Sonar and connect with GitLab user (no manual creation done for this user, it was automatically created)
Create project with GitLab → all projects are displayed, but when configuring analysis, it only display manual configuration
I haven’t changed anything in role / user permission yet and I was thinking that all users were able to create (and configure) projects from GitLab using CI/CD.
If I want to configure analysis with CI/CD, I have to update project’s permissions and add “Administer” rights.
It won’t be very intuitive if an admin has to update each project and assign administer role
My main question here is : how to have the previous screen (“With GitLab CI” option) when creating / importing a project from GitLab, with a “GitLab” user ?
You need admin permission at project level. So you need to change your permission template (Administration → Security → Permission Template), and tick Administer for Creators: