> For the complete documentation index, see [llms.txt](https://docs.screendesk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.screendesk.io/security/saml-sso/saml-sso-with-azure-ad.md).

# SAML SSO with Microsoft Entra ID

Configure SAML SSO with Microsoft Entra ID (Azure AD)

This guide connects Microsoft Entra ID (formerly Azure AD) to Screendesk so your team signs in with their Microsoft account.

{% embed url="<https://app.screendesk.io/recordings/2b47e26a-23b1-46b2-91c2-422b44ef19a5>" %}

{% hint style="info" %}
**Plans:** Enterprise. You need admin access to the **Microsoft Entra admin center** and to your Screendesk workspace. Keep **Settings → Sign-in & SSO** open in Screendesk for the values below.
{% endhint %}

***

### Step 1: Create an enterprise application in Entra ID

{% stepper %}
{% step %}

#### Create the application

At [entra.microsoft.com](https://entra.microsoft.com), go to **Identity → Applications → Enterprise applications**. Click **New application → Create your own application**, name it **Screendesk**, choose **Integrate any other application you don't find in the gallery (Non-gallery)** and click **Create**.
{% endstep %}

{% step %}

#### Choose SAML

Open **Single sign-on** and select **SAML**.
{% endstep %}

{% step %}

#### Basic SAML Configuration

Click **Edit** and enter:

| Entra field                                    | Value                                                                                                     |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| **Identifier (Entity ID)**                     | `urn:screendesk.io:saml`                                                                                  |
| **Reply URL (Assertion Consumer Service URL)** | `https://app.screendesk.io/saml_callback`                                                                 |
| **Relay State**                                | The **Default relay state** from Screendesk, if people will start from My Apps. Otherwise leave it blank. |

Leave **Sign on URL** and **Logout URL** blank. Save.

You can also upload Screendesk's metadata instead: download it from **Settings → Sign-in & SSO → Download metadata XML** and use **Upload metadata file**.
{% endstep %}

{% step %}

#### Attributes & Claims

The **Unique User Identifier (Name ID)** must be the person's email: `user.mail`, or `user.userprincipalname` if it is always their email. Entra's default email, given name and surname claims are enough to name new accounts.
{% endstep %}

{% step %}

#### Copy Entra's details

From the **SAML Certificates** and **Set up Screendesk** cards, keep:

* **Login URL**
* **Microsoft Entra Identifier**
* **Certificate (Base64)**: click **Download**
  {% endstep %}

{% step %}

#### Assign people

Open **Users and groups** and add the people or groups who should use Screendesk. Only assigned people can sign in.
{% endstep %}
{% endstepper %}

***

### Step 2: Connect Entra ID in Screendesk

In **Settings → Sign-in & SSO**, click **Connect identity provider** and fill in:

| Screendesk field                | From Entra ID                                                                                                  |
| ------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| **Email domain**                | Your company's email domain, such as `yourcompany.com`                                                         |
| **Sign-on URL**                 | Login URL                                                                                                      |
| **Identity provider entity ID** | Microsoft Entra Identifier                                                                                     |
| **X.509 certificate**           | The Base64 certificate text, including the `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----` lines |

Save it.

<figure><img src="https://3820804400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfW6XSzJSKsNyZnOkSJPt%2Fuploads%2FV0rb8uuDXlvxa36X441F%2Fdocs-dialog-sso-connect.png?alt=media" alt="Connect your identity provider in Screendesk"><figcaption></figcaption></figure>

***

### Step 3: Test

* In Entra, click **Test this application** on the **Single sign-on** page, or
* open the **Sign-in link** from Screendesk's settings in a private window.

Once it works, you can turn on **Enforce SAML SSO**. See [Sign-in and SSO](https://docs.screendesk.io/security/saml-sso.md).

{% hint style="warning" %}
If you also set up SCIM provisioning: Entra ID deactivates people with a `PATCH` request, which Screendesk doesn't support yet. When someone leaves, also remove them in **Settings → Members**.
{% endhint %}

***

### Troubleshooting

<details>

<summary>"SAML Authentication failed"</summary>

Screendesk couldn't verify Entra's signature. Check that:

* the certificate in Screendesk is the Base64 certificate from Entra, pasted in full;
* the **Reply URL** is exactly `https://app.screendesk.io/saml_callback`;
* the **Identifier** is exactly `urn:screendesk.io:saml`.

</details>

<details>

<summary>"AADSTS700016" or application not found</summary>

The person isn't assigned to the Screendesk application. Add them, or a group they're in, under **Users and groups**.

</details>

<details>

<summary>Wrong name or email in Screendesk</summary>

The Name ID must be the person's email address. If `user.userprincipalname` differs from their email, use `user.mail`.

</details>

<details>

<summary>"Ask your IT administrator to provision an account for you"</summary>

**Create accounts at first sign-in** is off in Screendesk. Turn it on, or invite the person first.

</details>


---

# 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.screendesk.io/security/saml-sso/saml-sso-with-azure-ad.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.
