> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/2025.1/instance-administration/authentication/saml/ms-entra-id/introduction.md).

# Introduction

Steps to set up SAML authentication with Microsoft Entra ID in SonarQube Server 2025.1.

For an overall understanding of the SAML authentication feature, read the [Overview](/sonarqube-server/2025.1/instance-administration/authentication/saml/overview.md) page.

To set up SAML with Microsoft Entra ID:

1. If you want to use [Overview of authentication and provisioning](/sonarqube-server/2025.1/instance-administration/authentication/overview.md#justintime-provisioning) with the group synchronization feature, verify the user groups in SonarQube Server so that the automatic group synchronization can take place properly.
2. Register SonarQube server in Entra ID. See the [Setup in Microsoft Entra ID](/sonarqube-server/2025.1/instance-administration/authentication/saml/ms-entra-id/setup-in-entra-id.md) page to get started.
3. Configure SAML in SonarQube Server; instructions are on the[Setup in SonarQube Server](/sonarqube-server/2025.1/instance-administration/authentication/saml/ms-entra-id/setup-in-sq.md) page.
4. If you want to use SCIM provisioning, follow the instructions on the [With Microsoft Entra ID](/sonarqube-server/2025.1/instance-administration/authentication/saml/scim/scim-provisioning-with-azure-ad.md) page.
5. Optionally, set up security features; see the [Setup of security features](/sonarqube-server/2025.1/instance-administration/authentication/saml/ms-entra-id/optional-security-features.md) page.

{% hint style="warning" %}

* Group synchronization doesn’t work with Microsoft Entra ID’s nested groups.
* Microsoft Entra ID SAML tokens have a limit regarding the number of groups a user can belong to (see the description of groups in the [Claims in SAML Token](https://learn.microsoft.com/en-us/entra/identity-platform/reference-saml-tokens#claims-in-saml-tokens) table). In such cases, you might need to reduce the number of groups the user is in.
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sonarsource.com/sonarqube-server/2025.1/instance-administration/authentication/saml/ms-entra-id/introduction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
