How OpenSearch Dashboards SAML single sign-on works
Dashboards users need to sign in with corporate identity, while administrators keep a fallback for break-glass access and for service accounts that cannot use a browser. The OpenSearch Security plugin implements the SAML 2.0 web browser SSO profile, and its primary use is single sign-on for OpenSearch Dashboards. In this model, Dashboards acts as the service provider, and an external identity provider (IdP) such as Microsoft Entra ID or AD FS authenticates the user and returns a signed SAML assertion. The browser carries that exchange, so the user never types a password into OpenSearch itself.
The IdP role matters for planning. Your identity team owns the user store, multi-factor policy, session lifetime and the group claims that OpenSearch reads to assign roles. Your OpenSearch team owns the service provider configuration: the entity IDs, assertion consumer URLs, signing and encryption certificates, and the attribute names the Security plugin expects. Confirm with your IdP administrators which certificate signs assertions and how it rotates before you configure anything, because a mismatch there blocks every sign-in. The exact settings and their defaults are in the OpenSearch SAML documentation, which you should read against the version you run.
Keeping a fallback is a configuration decision, not an afterthought. With opensearch_security.auth.multiple_auth_enabled set to true, Dashboards can show basic authentication, OpenID Connect and SAML together on the sign-in page. Basic authentication is always one of the options, so a local account remains available if the IdP is unreachable. Decide before rollout who holds that local account, where its password is stored and how access to it is logged, and test the sign-in page for each method. Document that fallback path in your runbook so that an outage at the IdP does not become an outage of Dashboards.
What you need before configuring SAML
SAML login for Dashboards depends on four things lining up before any configuration file is touched: a known OpenSearch version with the Security plugin, an identity provider your team can administer, a stable public address for Dashboards, and a certificate and metadata exchange in both directions. Work through these cards first so the configuration step is a transcription exercise rather than a debugging session.
OpenSearch version and Security plugin
Record the exact OpenSearch and OpenSearch Dashboards versions, and confirm the Security plugin is enabled on both the cluster and Dashboards. The SAML authentication backend and its Dashboards settings have changed across releases, so the version you deploy determines which settings you copy. Check the current SAML documentation for that version before writing any configuration, and note which maintenance line the version belongs to so patching is planned from the start.
SAML docsAn identity provider you can administer
Decide which SAML 2.0 identity provider will issue assertions, such as Microsoft Entra ID or AD FS for on-premises Active Directory. Confirm that someone on your team can create an enterprise application or relying party trust, set claim rules, and assign users or groups. If the directory is on-premises, confirm whether identities are synced to Entra ID with Microsoft Entra Connect or whether AD FS will federate directly, because that choice changes who owns the login path.
Public Dashboards URL and TLS certificate
Fix the external address users will type, including host name and port, before registering anything with the identity provider. The SAML assertion consumer URL and the Dashboards base URL must match this address exactly, so a later host name change means re-registering the service provider. Issue a certificate for that host name from your own PKI or internal CA, and confirm that the identity provider and user browsers trust the issuing CA.
Metadata and signing certificate exchange
Plan how the two sides exchange trust material. The identity provider publishes its metadata and signing certificate, which Dashboards and the Security plugin must trust to verify assertions. Dashboards supplies its entity ID and assertion consumer endpoint, and you decide whether assertions are signed, encrypted or both. Record who generates each certificate, where it is stored, and when it expires, since an expired signing certificate is a common cause of sudden login failure.
Attribute names and group claims
Before configuring mapping, list the attributes the identity provider will send, such as the user name, email and group membership, and agree on the exact claim names with the identity team. Roles in OpenSearch are mapped from these values, so the group identifiers must be stable and readable by the security team. Note whether group claims carry names or object identifiers, because that choice affects every role mapping you write later.
Confirm settings against the current docs
Before you copy any setting, confirm the exact keys and their expected format for your chosen version in the current SAML documentation. Treat examples in older blog posts or demo files as illustrative only. Ask the identity provider administrator to confirm claim names and certificate formats, and keep a short written record of the versions and endpoints you validated so the configuration can be reviewed later.
Configuring SAML in Dashboards step by step
This sequence takes Dashboards from an identity provider registration to a tested SAML sign-in that sits beside basic login, so a misconfiguration never locks administrators out.
Register Dashboards as a relying party
The identity provider team creates a SAML application for Dashboards in the IdP (for example Entra ID or ADFS), sets the entity ID and assertion consumer URL to the values your Dashboards hostname will use, and decides which claims or attributes are released, such as user name, email and group membership. Record the exact entity ID and assertion consumer URL, because a single character mismatch later will fail every sign-in. Done means the application exists in the IdP with a documented attribute list and an owner who can change it.
Export and check the IdP metadata
Download the federation metadata XML from the identity provider and confirm it contains the signing certificate, the single sign-on endpoint and the expected entity ID. Keep the file under version control with the rest of your Dashboards configuration. Done means the metadata file opens as readable XML and the certificate expiry date has been noted for the renewal calendar. Confirm with your IdP administrator how that certificate is rotated, since expiry will stop sign-in.
Add the SAML authentication domain in Security configuration
Using the Security plugin configuration, add a SAML authentication domain to the authc section of config.yml with the IdP metadata, the entity ID, the subject key and the roles key that match the attributes released in step one. Follow the current SAML backend documentation for the exact keys, because they differ between plugin versions. Done means the configuration validates without errors when applied in a test cluster, and the domain appears in the authentication order you planned.
Set the Dashboards SAML settings
In opensearch_dashboards.yml, configure the SAML options that the browser flow needs, including the Dashboards public URL and the SAML login path, and confirm they match the entity ID and assertion consumer URL registered in step one. Restart Dashboards after the change. Done means Dashboards starts cleanly and the sign-in page renders without a configuration error in the logs.
Enable multiple authentication on the sign-in page
Set opensearch_security.auth.multiple_auth_enabled to true in opensearch_dashboards.yml so Dashboards offers SAML next to basic authentication on the sign-in page. Basic authentication always remains one of the options, which is the fallback for administrators if the IdP is unavailable. Done means the sign-in page shows both the SAML option and the basic login form.
Test SAML sign-in and the basic login fallback
Sign in through SAML with a pilot user, then confirm the user lands in the expected tenant with the roles mapped from the IdP attributes. Sign out, then sign in with a local administrator account using basic authentication to prove the fallback still works. Test a user without the mapped group and confirm access is denied. Done means all three tests pass and the results are recorded in your change ticket. Confirm the exact role mapping behavior against the current Security plugin documentation before rollout.
How the SAML login flow moves between browser, Dashboards and the identity provider
A SAML sign-in to OpenSearch Dashboards is a series of browser redirects, and the trust boundary sits in the signed message the identity provider (IdP) sends back. The user opens Dashboards and is sent to the IdP's sign-in endpoint with a SAML authentication request. After the user authenticates at the IdP, the browser carries a signed SAML assertion back to the Assertion Consumer Service (ACS) endpoint on the Dashboards side, which the Security plugin exposes. The Security plugin then checks the signature, the audience, the validity window and the issuer, maps the attributes to a user and roles, and creates the Dashboards session. Dashboards itself never sees the user's password, so the IdP and the Security plugin are the two parties that must agree on who is trusted.
The trust boundary is the signing key and the metadata that describes each side. The Security plugin must hold the IdP's signing certificate so it can verify assertions, and the IdP must hold the service provider entity ID and ACS URL that Dashboards advertises. These values must match exactly, including scheme, host, port and path, because a mismatch in the entity ID, the audience restriction or the ACS URL causes the login to fail at the IdP or at the Security plugin. Confirm which certificate is the active signing certificate, how it will be rotated, and who in your organization owns that change. Also confirm whether the IdP signs the full response, the assertion or both, since the Security plugin configuration and the IdP's settings must agree.
Before you configure anything, write down a table of every endpoint and certificate on both sides and have the IdP administrator review it. Include the Dashboards external URL, the ACS path, the entity ID, the IdP metadata URL or certificate, the signing algorithm and the clock tolerance between servers. Time skew between Dashboards hosts and the IdP can make valid assertions look expired, so confirm that all servers synchronize their clocks. Check the exact SAML settings and option names in the OpenSearch SAML documentation against the Security plugin version you run, since names and defaults can change between releases. Treat this matrix as the acceptance checklist for the login test.
Where each component sits in the SAML sign-in path
The sign-in starts in the browser, which requests a Dashboards page and is redirected to the SAML identity provider (for example Entra ID or ADFS) because the Security plugin in Dashboards is configured for SAML. The identity provider authenticates the user and returns a signed SAML assertion through the browser to Dashboards, which hands it to the Security plugin. The plugin maps assertion attributes to backend roles and checks them against the cluster's role mappings before the cluster grants access. Check which network segment each hop crosses, since the identity provider sits outside the client network trust boundary.
Browser redirects between Dashboards and the identity provider, with the trust boundary marked.
Mapping SAML attributes and groups to OpenSearch roles
This table traces one login from the identity provider's NameID and groups claim through the backend roles OpenSearch derives, to the internal role mappings that grant permissions. Read it top to bottom when you design the mapping, and confirm each attribute name against your own IdP's SAML response before you write any configuration.
| Stage | What it carries | Where it is set | What to confirm |
|---|---|---|---|
| NameID or subject | The user identifier the IdP asserts, usually an email address or account name | The SAML authentication domain settings in the Security plugin, which determine which value becomes the OpenSearch username | Which claim the IdP sends as NameID and whether it is stable across renames |
| Groups or roles claim | Group or role names the user belongs to, sent as a multi-value attribute in the assertion | The attribute name for roles in the SAML authentication domain configuration, matched exactly to the IdP output | The exact attribute name and whether the IdP sends group IDs or display names |
| Backend roles | Strings OpenSearch attaches to the user from the roles claim, used as the link to internal roles | Derived from the roles attribute at login; not created as separate objects | Whether group names are long, mixed case or contain spaces that need consistent handling |
| Internal role mapping | Ties backend roles or user names to a Security plugin role that grants index and cluster permissions | Role mappings in the Security plugin, applied with the security configuration tools | That each IdP group maps to a role with the least permissions the team needs |
| Role permissions | Index, document and field access that the mapped role allows | Role definitions in the Security plugin, including any document-level or field-level rules | That mapped roles do not grant admin rights by accident through a broad group |
| Unmapped users | Users who authenticate but match no role mapping and so receive no useful access | Behavior set by the default and fallback role configuration | Whether unmapped users land in a restricted role or are denied at the Dashboards level |
Hardening SAML sign-in for Dashboards
Federating Dashboards with SAML moves the sign-in decision to your identity provider, so the risk shifts to the trust settings around it. The cards below cover the controls that decide who gets in, how long a session lasts, what a stolen login can reach, and whether sign-in events can be reconstructed later.
Signed assertions and certificate rotation
Dashboards trusts the identity provider's signing certificate to validate every SAML response, so that certificate is the trust anchor for the whole sign-in path. Confirm that the IdP signs assertions, not only the response envelope, and that Dashboards rejects unsigned or incorrectly signed messages. Record the certificate's expiry date and the owner who renews it, because a lapsed certificate either blocks every user or, if the configuration is loose, invites substitution. Test a rotation in a non-production cluster before the production date arrives.
SAML docsFixed entity IDs and callback URLs
The entity ID and assertion consumer URL in the SAML configuration determine where the IdP will send users and which service provider it believes it is talking to. Pin both to the exact hostnames your users reach, and remove any alias or test hostname from the IdP's registration. Reviewing these values whenever a load balancer, DNS name or reverse proxy changes prevents an accidental redirect to a host you do not operate. Ask the IdP administrator to confirm the registered values in writing.
Basic login as a guarded fallback
When opensearch_security.auth.multiple_auth_enabled is true, basic authentication stays on the sign-in page, so a SAML outage will not lock out administrators, but it also gives password guessers a route around your IdP. Keep the local admin account for break-glass use only, store its password in a vault with a documented owner, and enforce a strong password policy with rotation. Consider whether the fallback should remain visible to all users at all, and review login rate limiting alongside it.
Session lifetime and re-authentication
A SAML sign-in establishes a Dashboards session, and that session can outlive the user's employment or role change at the IdP. Set a session lifetime that matches your policy for privileged access, and confirm how the IdP handles logout and disabled accounts. Ask the Dashboards and security teams to agree on how quickly a removed user loses access, then test that timing with a disabled test account rather than relying on the documented behavior alone.
Least-privilege group mapping
Mapping a broad IdP group such as all staff directly to an admin role is the most common way SAML sign-in grants more access than intended. Map each IdP group to the narrowest OpenSearch role that serves it, and keep admin roles bound to a small, separately governed group. Review the mapping whenever groups change, and use a test user in each group to confirm what that user can and cannot open. Illustrative example: a help desk group should read operational dashboards without rights to change security settings.
Audit logging of sign-in events
Sign-in events are only useful if they are recorded with enough detail to reconstruct who authenticated, through which method, and from where. Enable the Security plugin audit logging and decide where the records go, how long they are kept, and who can read them. Confirm that failed SAML responses and fallback basic logins appear in the log, and that a second team can review them. Check the audit categories against the events your investigators expect before an incident, not during one.
Security docsEntra ID, ADFS and on-premises directories compared
When users already sign in to Microsoft 365 or other cloud applications, Microsoft Entra ID can act as the SAML identity provider for Dashboards directly. Entra ID publishes its federation metadata for each registered application, so the OpenSearch side needs the metadata for that specific enterprise application rather than a generic file. Entra ID is also the cloud identity service that Microsoft describes as the evolution of Active Directory Domain Services, which is why it suits organizations whose workforce is mostly cloud-based.
- Metadata source: Use the federation metadata document from the Dashboards enterprise application in your tenant, and record which signing certificate it contains and when that certificate expires.
- Claim configuration: Define the NameID and any attributes Dashboards needs in the application's claims settings, so the values match the subject and roles keys you configure in the Security plugin.
- Group sourcing: Decide whether groups are emitted as claims, which group types are included, and whether large group lists need a filter, since group membership sent in the assertion determines the roles a user can map to.
- Licensing: Confirm the Entra ID edition and any conditional access or group features your tenant uses, because those features affect who can sign in.
- Tenant confirmation: Check tenant ownership, admin roles and who can change the enterprise application, since those permissions govern future certificate rotation.
Before go-live, confirm the tenant's sign-in policies and certificate expiry dates with your identity team, and do not assume the defaults match your access model.
Where user accounts and group memberships stay in an on-premises Active Directory, Microsoft's guidance is that SaaS and web applications need a federation system such as AD FS to issue SAML assertions. In this model your team operates the federation service, so the Dashboards relying party trust, its claim rules and the signing certificate all sit inside your own Windows infrastructure. Microsoft describes Active Directory Domain Services as a Windows Server role that replicates directory data to every domain controller, so the federation service reads group data from the same directory the rest of your Windows estate uses.
- Metadata source: Export the federation metadata from your ADFS farm and load it into the Security plugin configuration, and repeat the export whenever the token-signing certificate changes.
- Claim rules: Write issuance rules that send the NameID and group claims Dashboards expects, and test them with a sample account before enabling the relying party for all users.
- Group sourcing: Groups come from the Active Directory domain that ADFS queries, so nested groups and group scope affect which roles a user receives.
- Lifecycle costs: Windows Server licensing and the Windows Server version in use are costs your organization already carries. The Windows Server 2025 pricing page lists per-core licensing with a minimum of 16 cores per server, and the Windows Server 2022 mainstream support end date is October 14, 2026, so confirm which release the farm runs.
- Operations: Plan for ADFS patching, certificate rotation and high availability of the farm, since sign-in to Dashboards depends on it.
Confirm the ADFS version, the farm topology and the owner of the token-signing certificate before you agree on a relying party design.
Most existing Active Directory organizations use Microsoft Entra Connect to sync identities into Microsoft Entra ID, so the cloud directory mirrors on-premises users and groups. This hybrid arrangement lets you choose the identity provider for Dashboards after the sync is in place: Entra ID can issue the assertion for cloud-registered applications, or ADFS can remain the issuer for applications that must stay on-premises. Microsoft's comparison notes that Active Directory administrators can domain-join Windows devices and manage Windows desktops with Group Policy, while Linux machines need third-party tools or Kerberos realm configuration, so the sync design affects which systems your team can manage from the same directory.
- Sync scope: Confirm which organizational units, groups and attributes Entra Connect synchronizes, because groups left out of the sync will not appear as Entra claims.
- Source of truth: Decide whether on-premises Active Directory or the cloud directory controls group membership for Dashboards roles, and avoid maintaining two sets of role mappings.
- Password and sign-in method: Confirm the sign-in method the hybrid tenant uses, since it determines how users authenticate at the identity provider.
- Change timing: Group changes take effect at the next sync cycle and token issuance, so role changes may not be immediate.
- Ownership: Name who operates Entra Connect and who reviews its synchronized attributes.
Before you choose a provider, ask your identity team to document the sync scope and the group source, then test a role change end to end.
Common SAML sign-in failures and their causes
This table lists the sign-in failures most often seen when Dashboards is federated with a SAML 2.0 identity provider, with the likely cause and the first fix for each. Work down the rows in order, since a mismatch in the identity provider metadata or the callback URL can produce symptoms that look like a role or login problem.
| Symptom | Likely cause | First fix |
|---|---|---|
| Signature or certificate validation error after the identity provider redirects back | The signing certificate in the Security plugin configuration does not match the one the identity provider currently signs with, often after a certificate rollover | Compare the certificate in the identity provider metadata with the one in the SAML configuration, then update the configuration and restart or reapply it as your change process requires |
| Assertion rejected as not yet valid or expired | Clock skew between the identity provider, the Dashboards host and the OpenSearch nodes, which exceeds the tolerance on the assertion timestamps | Confirm all hosts sync to the same time source, then retest before changing any SAML settings |
| Identity provider shows an error about an unknown application or reply URL | The entity ID or assertion consumer (callback) URL registered at the identity provider does not match what Dashboards sends, including scheme, host name, port or path | Copy the exact entity ID and callback URL from the SAML configuration docs for your version and register them unchanged at the identity provider |
| Sign-in succeeds but the user gets no access or sees no indices | The identity provider does not send the group or role attribute that the mapping expects, or the claim name or format differs from the configured key | Inspect the SAML response for the attribute name and values, then align the roles key and the mapping to them |
| The SAML button is missing from the Dashboards sign-in page | Multiple authentication is off, so Dashboards only offers the configured primary method | Confirm opensearch_security.auth.multiple_auth_enabled is true and that the SAML authentication domain is listed as an option |
| User is locked out after basic login was removed | Basic authentication was taken out of the sign-in page while the SAML path was not yet working, leaving no fallback for administrators | Keep basic authentication on the sign-in page until SAML is tested end to end, and keep a named break-glass admin account with a documented recovery path |
| Users are redirected to a sign-in loop or see an error after the identity provider call | Callback URL, host name or proxy headers differ from the URL users type, so the session cookie or redirect is rejected | Check the external URL and reverse proxy settings, and confirm the callback matches the address users actually browse to |
Questions buyers ask about SAML for Dashboards
How much effort does a SAML setup for OpenSearch Dashboards take?
The effort depends mostly on how much access you can get to the identity provider, how many groups need to map to Dashboards roles, and how cleanly your role model is designed. A single identity provider with a small set of groups is a contained task. Each additional group, tenant and role mapping adds review and testing work, because every mapping decides what a user can read and write. Ask any partner to scope the work around three inputs: the identity provider access they will receive, the list of groups and attributes to map, and the roles those groups should receive. Also confirm whether your environment needs a separate test identity provider before production.
Can our team set up SAML for Dashboards without outside help?
Yes, a team with OpenSearch and identity administration skills can do it alone, and the Security plugin's SAML documentation covers the configuration. The harder part is usually the coordination: someone must register the Dashboards application in the identity provider, agree on the attributes that carry group names, and test sign-in and role outcomes for each group. If your identity team owns the provider and your platform team owns OpenSearch, plan a joint session for those decisions. A partner is most useful when the scope spans several identity sources or when the team lacks time to test every role path.
What do our identity and security staff need to provide?
Identity staff typically need to create the SAML application, decide the entity ID and reply URL for Dashboards, export or share the identity provider metadata, and confirm which claims or attributes the provider can send. Security staff should review which groups grant admin or broad read access, how sessions expire, and how certificates used for signing are rotated. Ask both teams to confirm whether the identity provider signs assertions, whether it encrypts them, and who owns the certificate renewal calendar. Those answers depend on your provider and environment, so confirm them with your vendor before the build starts.
What drives the cost of a SAML project for Dashboards?
Cost follows the time spent on identity provider coordination, group and role design, and testing. Internal staff time is a recurring cost for the people involved, while an outside partner is paid under a written scope. Costs rise when the group structure is unclear, when several tenants or identity sources are involved, or when production sign-in must be tested against many user types. They fall when groups are already documented and the identity provider is accessible. For a quote, ask for the deliverables, the test cases, the number of groups covered, and what is included for post-go-live changes. DeployOpen does not publish a price list, and a quote follows from the written scope.
Can SAML run beside basic login in Dashboards?
Yes. Dashboards can offer basic authentication, OpenID Connect and SAML together on the sign-in page when the multiple authentication setting is enabled, and basic authentication is always one of the options. Keeping basic login is useful for break-glass administrator access if the identity provider is unavailable, but it also means a second credential path that must be governed. Decide which accounts may use basic login, enforce strong passwords for them, and review that list regularly. Confirm the exact setting name and sign-in behavior for your Dashboards version in the documentation before you rely on it.
What changes if we move to a different identity provider later?
The Dashboards side changes less than the identity side. Moving from one SAML provider to another, for example from ADFS to a cloud provider, usually means registering a new application, updating the metadata and entity settings, and checking that group or attribute claims arrive with the same names. Role mappings may need edits if the new provider sends group identifiers in a different format. If you later change protocol, for example to OpenID Connect, the authentication backend changes as well, so the role mapping work must be repeated. Keep your group-to-role mapping documented and tested so that a provider change is a bounded task rather than a redesign.
Does the identity provider choice change the cost of the work?
It can, mainly through licensing and the identity infrastructure you already run. Active Directory Domain Services is a Windows Server role, and Microsoft's Windows Server 2025 pricing page lists a suggested price of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter for 16 core licenses, with prices varying by region. Microsoft's comparison notes that existing Active Directory organizations use Microsoft Entra Connect to sync identities to Entra ID. Confirm with your Microsoft licensing representative which components your organization already owns, because those figures do not include your Client Access Licenses or your own agreements.
How DeployOpen scopes and delivers SAML integration
DeployOpen scopes SAML work as a fixed-scope engagement, so the written scope, deliverables and timeline are agreed before any configuration starts. The planning phase covers the identity provider side (for example, an Entra ID enterprise application or an AD FS relying party trust), the Dashboards side (the opensearch_security.auth.multiple_auth_enabled setting and the SAML authentication domain), the attribute claims that carry user and group values, and the role mapping that decides who gets which OpenSearch roles. Planning also records who owns each setting, which environments are in scope and how the team will handle a rollback if sign-in fails.
The implementation takes place in your own cloud accounts, data centers or air-gapped network. DeployOpen configures the identity provider, the Security plugin SAML settings, the role and role mapping definitions and the Dashboards sign-in page in your infrastructure, using your certificates and metadata. Testing covers more than the happy path: it includes sign-in for each group that should have access, denial for users outside the mapped groups, the basic login fallback, sessions after logout and the behavior when the identity provider is unreachable. Each finding is fixed and retested before handover.
Documentation records the final configuration, the claim and group mapping, the test results and the operational steps your team needs, such as certificate renewal and metadata updates. Ongoing support, upgrades and continuous testing are available as a retainer after handover. Ask any partner, including DeployOpen, to confirm in writing who holds administrator credentials for the identity provider and the cluster once the engagement closes.

