Is it possible to pre-create users who will be authenticate to SQ v8.2 CE via an Identity Provider?
I have failed to do it with both OpenID (with the Open ID Connect plugin) and Gitlab (with the pre-integrated plugin) Identity Providers.
Our goal is to create and manage users and permissions of SonarQube (among other tools) outside SonarQube.
With SQ 7.9 CE, we used to use the Web API (/api/users/create) to create a “non-local” user account that was linked to the Identity Provider account of the user when he logged in the first time in SQ.
With SQ 8.2 CE (and probably the fact that logins of Identity Providers account are auto-generated - cf. https://jira.sonarsource.com/browse/SONAR-12475 -), it looks like that a new account has to be generated when an user logs in for the first time in SQ.
The user creation Web API (/api/users/create) stills works the SQ 7.9 way: the login is still mandatory for a non-local user and it is returned as is when it should be auto-generated.
If an account is pre-created with the Web API with the email address of the Identity Provider user account, then, when he logs in SQ the first time, he is notified that his email address is used by the account pre-created and if he is asked if he wants to associate this email to a new account associated that will be created (with the loss of any permissions given to the pre-created account)
Finally, the creation of a new account during the first authentication makes it mandatory for users to be able to “sign-up” in SonarQube, although this remains an option of the different authentication plugins.
So I would like to know if it is still possible to pre-create an account that will be linked to an Identity Provider in SonarQube v8.2+ and how to do it if it is the case.
Thanks in advance.