> Source: https://docs.cyberelements.io/saas/et/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/SAMLDirectory/

# SAML domain

A **SAML domain** delegates authentication entirely to an external identity provider. CyberElements verifies no password for it: it acts as a **service provider** (SP), sends the user to the IdP, and trusts the identity it gets back.

This type suits an organisation that already runs an IdP (Entra ID, ADFS, Okta, Keycloak) and wants CyberElements to connect to it rather than maintain a second authentication. The **second factor** (MFA) is then the IdP's responsibility as well.

## Virtual host activation

> **SAML domain without a virtual host**
>
> The SAML module (Shibboleth) must be enabled on a **virtual host**, which is set by CyberElements on the platform, not in this module. If no virtual host carries it, the console shows an orange warning when the type is selected, but **it still lets the domain be created and saved**. Nothing blocks and nothing fails: the domain exists, it is offered to users, and it does not authenticate them, with no usable error message.

The virtual host that carries the SAML module can also serve local and LDAP domains: a user who chooses one of these domains is not redirected to the identity provider. A virtual host therefore does not have to be dedicated to SAML domains.

## Implementation

The exchange is two-way: each party must know the other.

1. **Have the SAML module enabled on a virtual host** by CyberElements Support.
2. **Declare CyberElements to the IdP** as a service provider.
3. **Declare the IdP in the domain**: metadata, entity identifier, signing certificate.
4. **Map the attributes** the IdP emits to what CyberElements expects in order to identify the user and attach them to a group.

The console's **Access service** tab carries the metadata exchange.

![](https://docs.cyberelements.io/saas/img/cyberelements/CYE_AdminConsole_AuthenticationDomains_SAML_AccessService.png)

## Implementation example

The [Microsoft Entra ID](https://docs.cyberelements.io/saas/et/Integration/UserRepository/MicrosoftEntraIDIntegration/) integration walks through the whole setup: the enterprise application on the Entra ID side, the SAML domain on the CyberElements side, the metadata exchange in both directions, and the retrieval of groups, which SAMLv2 does not carry on its own.

## Limits

- CyberElements **manages no password** for this domain: complexity policy, expiry and first-login change all belong to the IdP, as does the **second factor** (MFA). The corresponding settings of the [local directory](https://docs.cyberelements.io/saas/et/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/LocalDirectory/) have no equivalent here.
- Authentication depends on the **availability of the IdP**. If it is unreachable, users of that domain can no longer log in: plan a fallback domain for administration accounts.
- The directory type cannot be changed after creation.
- The domain cannot be deleted while an [access policy](https://docs.cyberelements.io/saas/et/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/AccessContracts/), a [notification profile](https://docs.cyberelements.io/saas/et/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/NotificationProfiles/) or an [assistance profile](https://docs.cyberelements.io/saas/et/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/AssistanceProfiles/) references it.

---

The details of the **General information** and **Access service** tab fields are described in the [module reference](https://docs.cyberelements.io/saas/et/Usage/AdminConsoleReference/AuthenticationDomain/).

The API endpoints that drive this object are described in the [API reference](https://docs.cyberelements.io/saas/et/API/APIGuide/#get-/publicapi/-org-/samldomains/).
