This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Setup in Microsoft Entra ID

This page explains how to register SonarQube Server 10.7 in Microsoft Entra ID. This is the first step of SAML authentication setup with Microsoft Entra ID.

For AI agents: You're in the SonarQube Server 10.7 documentation. SonarQube Server 10.7 is no longer patched. To get patches, upgrade to the latest version. For a list of all 10.7 pages, see the SonarQube Server 10.7 page index. For the whole site, see the page index or the full text. For another version, replace 10.7 in the URL with that version. The latest version has no version number in its URL.

This page explains how to register SonarQube Server in Microsoft Entra ID. This is the first step of SAML authentication setup with Microsoft Entra ID. For an overview of the complete setup, see Introduction.

Step 1: Create the SonarQube Server SAML application in MS Entra ID

1. In Microsoft Entra ID, go to Manage > Enterprise applications > All applications.

2. Select New application and then Create your own application.

3. Fill in the name and select the Integrate any other application you don’t find in the gallery option.

4. Select Create.

Step 2: Configure the SonarQube Server application in MS Entra ID

1. Go to Single sign-on > SAML. The Set up Single Sign-On with SAML page opens

2. In the Basic SAML Configuration section of the page, select Edit, fill in the Identifier and the Reply URL fields as described below, and save.

Basic configuration fields

Field

Description

Identifier

Identifier of the SonarQube Server application in Entra ID.

Reply URL

Must be in the format: <sqServerBaseUrl>/oauth2/callback/saml

Example: https://my-sonarqube.com/oauth2/callback/saml

Note: Make sure the SonarQube Server URL is correctly set in SonarQube Server:

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

2. Navigate to the General section and check the Server base URL field value.

3. In the Attributes & Claims section of the page, select Edit and configure the attributes used by SonarQube Server as described below. To add an attribute, select Add new claim.

Attributes & claims

The table below shows possible mappings you can use for the SAML attributes used by SonarQube Server.

SAML attribute used by SonarQube

Description

Attribute in Microsoft Entra ID

Required

Login

A unique name to identify the user in SonarQube Server.

Examples: emailaddress, objectID

x

Name

The full name of the user.

Example: givenname

x

Email

The email of the user.

Example: emailaddress

4. If you use the group synchronization feature (If a matching group is found in SonarQube Server, the Entra ID user account’s memberships in that group are synchronized in SonarQube Server.), add a group attribute as described below. Alternatively, you may use SCIM user and group provisioning, see With Microsoft Entra ID.

Adding a group attribute
  1. Select Add a group claim, and configure the group attribute as follows:

    • Group Claims: Groups assigned to the application

    • Source attribute: sAMAccountname

  2. Once done, the option to add a group will be unavailable and the group attribute will be listed with the other attributes in the Add new claim tab.

5. In the SAML Certificates section of the page, download Certificate (Base64). (You will have to copy-paste the downloaded certificate into SonarQube Server during the Setup in SonarQube Server.)

6. Assign users and groups as follows:

  • Go to Manage > Users and groups.

  • Select Add user/group to assign users or groups to the application.

Last updated

Was this helpful?