Associating a user with an SCM account
As a System Administrator, you can explicitly associate an SCM (Source Control Management) account with a SonarQube user account.
SonarQube Community Build users can view the SCM accounts associated with their account: see Viewing your user profile.
About the SCM account association
SonarQube Community Build associates users with SCM (Source Control Management) accounts to automatically assign issues to users:
- If SonarQube Community Build delegates the authentication to a third-party identity provider, this association is done through the delegation. However, you can associate the user with additional SCM accounts.
- If no delegation is used, SonarQube Community Build recognizes the SCM account from the SonarQube account's Login and/or Email address. If it cannot perform the association (or if you want to associate other SCM accounts with the user account), you can do it explicitly.
To add an SCM account to a SonarQube Community Build user account, you associate the SCM account's login name or email address with the SonarQube Community Build account.
You should not associate the same SCM account with several SonarQube Community Build accounts; otherwise, SonarQube Community Build may not be able to properly assign issues to SonarQube Community Build users. In particular, this means that you should not configure the same email address in several SonarQube Community Build user accounts (Note that the email address check is case-insensitive in SonarQube Community Build). To ensure a proper issue assignment, SonarQube Community Build may reject a user login attempt, for example, if a SAML user logs in with an email address that is associated with a local user (In this case, the error "This account is already associated with another authentication method" is raised).
Adding an SCM account to a SonarQube Community Build user account
- Got to Administration > Security > Users and retrieve the user.
- In the user's Actions column, select the three-dot menu.
- Select Update (SCM) details.
- Near SCM Accounts, select Add. A box is displayed.
- In the box, enter the SCM account's login or email address.
- To add another account, re-select Add, etc.
- Select Update. The added SCM accounts are displayed in the SCM Accounts column as illustrated below.
Related pages
Was this page helpful?