> For the complete documentation index, see [llms.txt](https://doc.dastra.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dastra.eu/nl/features/settings/sso/entra-id.md).

# Active Directory (Microsoft Entra ID)

Deze pagina legt uit hoe u de SSO van Dastra instelt met Microsoft Entra ID (Active Directory) via het SAML 2-protocol.

## De toepassing configureren in Microsoft Entra ID

* Ga naar het Microsoft Entra-beheercentrum: <https://entra.microsoft.com>
* Klik in de linkernavigatie op **Entra ID** > **Enterprise apps**.
* Klik op **New application** en daarna op **Create your own application**.
* Voer de naam van de toepassing in, bijvoorbeeld "Dastra".
* Selecteer **Integrate any other application you don't find in the gallery (Non-gallery)** en maak de toepassing aan.
* Klik in het gedeelte **Manage** op **Single sign-on** en selecteer **SAML**.
* U komt op deze pagina:

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-b11176d03102be64b1c7bd79178612246c877f29%2Fad1.png?alt=media" alt="De SAML-configuratiepagina van een enterprise-toepassing in Microsoft Entra ID"><figcaption></figcaption></figure>

## De SSO-client configureren in Dastra

### Stap 1: een SAML-SSO-login maken in Dastra

* Ga naar de [SSO-configuratiepagina van Dastra](https://app.dastra.eu/general-settings/sso) (**Organisatie-instellingen** > **Eenmalig inloggen**).
* Klik op **Voeg een SSO-login toe**.
* Selecteer bij **SSO-protocol** de optie **SAML2** en daarna **Handmatige configuratie**.
* Voer bij **Titel van de SSO-verbinding** een naam voor de verbinding in, bijvoorbeeld "Active Directory".

### Stap 2: de SSO-login configureren in Microsoft Entra ID

* Ga terug naar de SAML-configuratiepagina van Microsoft Entra ID.
* Klik op **Edit** in het gedeelte **Basic SAML Configuration**.
* Voer de verbindingsgegevens in die bovenaan het SAML-formulier van Dastra staan: **Identifier (Entity ID)** en **Reply URL (Assertion Consumer Service URL)**:

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-e2621bdc51be1ceb2a1d7d946093a274163ae020%2Fad2.png?alt=media" alt="Het gedeelte Basic SAML Configuration met de identifier en de reply-URL"><figcaption></figcaption></figure>

* Klik op **Save**.
* Ga direct naar het gedeelte **SAML Certificates** om het certificaat in Base64-formaat te downloaden:

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-160008fb70247adc486bb1059a6ca2e918dd48fe%2Fad3.png?alt=media" alt="Het gedeelte SAML Certificates met de downloadlink voor het Base64-certificaat"><figcaption></figcaption></figure>

* Open het CER-bestand met een teksteditor (bijvoorbeeld Kladblok) en kopieer de inhoud (Ctrl + C):

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-37c1ca15c9ba91efe03b59d318309ceb0a2b18bc%2Fad4.png?alt=media" alt="De inhoud van het certificaat geopend in een teksteditor"><figcaption></figcaption></figure>

### Stap 3: het certificaat toevoegen aan de Dastra-client

* Ga terug naar het scherm voor het maken van de SAML-verbinding in Dastra.
* Plak de tekst van het certificaat (Ctrl + V) in het veld **Identity Provider Certificaat (RAW)**.

### Stap 4: de URL's van de identiteitsprovider configureren in Dastra

* Kopieer in het gedeelte **Set up** van de Entra ID-toepassing de drie waarden **Login URL**, **Microsoft Entra Identifier** en **Logout URL**:

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-46cbe8b58247d802833740757a7dc34e847e43df%2Fad5.png?alt=media" alt="Het gedeelte Set up van de toepassing met de drie te kopiëren URL&#x27;s"><figcaption></figcaption></figure>

* Plak ze in Dastra volgens deze koppeling:
  * **Login URL**: **Identity Provider SSO url**
  * **Microsoft Entra Identifier**: **Entiteits-ID van de identiteitsprovider (uitgever)**
  * **Logout URL**: **Uitlog-URL van identiteitsprovider**
* Uw SSO-configuratieformulier in Dastra moet er zo uitzien:

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-b601c2bdaccb1a2b64044747d40d0b3dfc5b473c%2Fsettings-sso-entra-dastra-idp-configuration.png?alt=media" alt="Het SAML-formulier van Dastra, ingevuld met de waarden van Microsoft Entra ID"><figcaption></figcaption></figure>

* U kunt de optie **Gebruiker aangemaakt als de gebruiker nog nooit is uitgenodigd voor Dastra** inschakelen, in de sectie **Automatisch gebruikers aanmaken**. In dat geval worden accounts uit uw directory die nog niet in Dastra bestaan, aangemaakt bij hun eerste login:

<figure><img src="https://996651476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1i0NSpf8ID0PXTpIyycA%2Fuploads%2Fgit-blob-916dbd09f7a2ec53896ab4a83549b621e4c83042%2Fsettings-sso-entra-auto-create-user-option.png?alt=media" alt="De optie voor automatische gebruikersaanmaak in het SSO-formulier"><figcaption></figcaption></figure>

* Sla uw wijzigingen op in Dastra.

{% hint style="info" %}
Zorg ervoor dat er een gebruiker aan de nieuwe toepassing is toegewezen voordat u de verbinding test.
{% endhint %}

### Uw SSO-verbinding testen

Klik in Microsoft Entra ID op de knop **Test** in het gedeelte **Test single sign-on** van de toepassing. Als alles werkt, wordt u doorgestuurd naar Dastra.

{% hint style="info" %}
Als u de automatische gebruikersaanmaak niet hebt ingeschakeld, weigert Dastra de toegang totdat het lokale account via een uitnodiging is aangemaakt.
{% endhint %}

### Meer informatie

{% content-ref url="/pages/1m2mOQCmQjucrW9eQ8FK" %}
[Bekende problemen](https://doc.dastra.eu/nl/features/settings/sso/known-problems.md)
{% endcontent-ref %}

{% content-ref url="/pages/eoLa6C3Ym16mYdVvfliR" %}
[SAML 2](https://doc.dastra.eu/nl/features/settings/sso/saml.md)
{% endcontent-ref %}


---

# 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://doc.dastra.eu/nl/features/settings/sso/entra-id.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.
