Start Free
SonarQube Community Build | Instance administration | Authentication and provisioning | SAML | With Microsoft Entra ID | Setup in SonarQube Community Build

Configuring SAML with Microsoft Entra ID in SonarQube Community Build

On this page

This page explains how to set up SAML in SonarQube Community Build when using Microsoft Entra ID as the identity provider. This is the second step of SAML authentication setup with Microsoft Entra ID. For an overview of the complete setup, see Setting up SAML with Microsoft Entra ID.

Proceed as follows:

  1. Open MS Entra ID to prepare the copy-paste of single-sign-on settings in SonarQube Community Build.
  2. Configure SAML in SonarQube Community Build.

Open MS Entra ID

To prepare the copy-paste of single-sign-on settings in SonarQube Community Build:

  1. In Microsoft Entra ID, go to Identity > Applications > Enterprise applications > All applications and select the application you created for SonarQube Community Build.
  2. On the application's page, select Single sign-on. You will need to retrieve values related to sections 1, 2, and 4. In section 2, select Edit first to open the Attributes & Claims page.

Configure SonarQube Community Build

1. Go to Administration > Configuration > General Settings > Authentication> SAML.

2. Select Create Configuration.

3.  Fill in the fields as explained in the table below. 

Field in SonarQube Community BuildDescription
Application IDValue in MS Entra ID:In the Basic SAML Configuration section (1), value of the Identifier(Entity ID) field.
Provider IDValue in MS Entra ID:In the Set up <applicationForSonarQube> section (4), value of the Microsoft Entra ID Identifier field.
Provider NameName of the Identity Provider displayed in SonarQube Community Build login page when SAML authentication is active.
SAML Login URLValue in MS Entra ID:In the Set up <applicationForSonarQube>  section (4), value of the Login URL field.
Identity provider certificateCertificate downloaded in Step 2 of Setup in Entra ID.
SAML user login attribute

Value in MS Entra ID:In the Attributes & Claims section (2), select Edit and retrieve the Claim name (URL type value) of the attribute to be used for Login. 

For an example, see the SonarQube Community Build screenshot below.

SAML user name attribute

Value in MS Entra ID:In the Attributes & Claims section (2), select Edit and retrievethe Claim name (URL type value) of the attribute to be used for Name. 

For an example, see the SonarQube Community Build screenshot below.

SAML user email attributeOptional.
Value in MS Entra ID:In the Attributes & Claims section (2), select Edit and retrieve the Claim name (URL type value) of the attribute to be used for email.
SAML group attributeOptional (if you want to use the group synchronization).
Value in MS Entra ID:In the Attributes & Claims section (2), select Edit and retrieve the Claim name (URL type value) of the groups attribute.

Below is a SonarQube Community Build screenshot with SAML user login and name value examples.

The corresponding configuration in SonarQube uses the Azure namespace + name of the attribute to be used.

4. Save the configuration.

5. Before enabling SAML authentication on SonarQube Community Build, you can verify that the configuration is correct by selecting Test Configuration. This will initiate a SAML login and return useful information about the SAML response obtained from the identity provider.

6. Select Enable configuration.

7. Check that the SonarQube Community Build login form now contains a SAML login button.

Customize the login name

Was this page helpful?

© 2008-2025 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License