Wazuh SSO with SAML identity providers

A practical guide for security and platform teams who need Wazuh dashboard logins to run through their SAML identity provider, with groups mapped to administrator and read-only roles that they can audit.

On this page

Wazuh SSO with SAML: why dashboard logins should follow your identity provider

Replacing local Wazuh dashboard accounts with SAML single sign-on means every login, role change and removal is decided in your identity provider, not in a separate user list on the Wazuh indexer. For a security team that needs joiner, mover and leaver control to match the rest of the estate, that is the reason to do it: access to the dashboard follows the same approvals, multi-factor policy and offboarding process as every other corporate system. Wazuh supports SAML alongside its internal user database, so the connection can be added without removing the local accounts you still need for break-glass access. Its documentation includes guides for Okta, Microsoft Entra ID, Keycloak and several other providers, and the exact configuration steps differ by provider and by release, so confirm each step against the 4.14 documentation for the version you run before you change anything in production.

The SAML connection covers one thing: who can sign in to the Wazuh dashboard and which role they receive when they do. It does not cover agent enrollment, which uses its own credentials and is governed by the enrollment settings described in the hardening topic. It also does not cover API users, which authenticate to the Wazuh server API separately, or access to the Wazuh indexer, which has its own security configuration. A common gap appears after go-live when a team assumes that disabling a person in the identity provider removes every path to the platform. Ask who holds API credentials and indexer access, and document those paths separately from dashboard access.

Group-to-role mapping is where most of the effort and risk sits. The identity provider sends group claims, and the Wazuh side must translate those groups into the administrator and read-only roles that control what a user can change. Mistakes here are quiet: a broad group assigned to an administrator role, or a group name that changes in the identity provider and silently stops matching, can either over-grant access or lock out the people who need it. Agree the group list, the role for each group and the owner who approves changes before configuring anything, and test each mapping with a representative account from every group. Confirm with your identity provider team how group claims are issued, including any limits on the number of groups per token.

Which identity provider, role model and fallback path fit your environment

This table compares the main choices for Wazuh SAML sign-in: where roles are decided, how many roles to define, and how to keep a fallback path. Read each row against your identity provider team's capacity to maintain groups, and treat the operational costs as the deciding factor rather than the setup effort.

DecisionWhen it fitsOperational cost
Identity provider as source of truth for users and groupsYour organization already manages Okta, Microsoft Entra ID, Keycloak or another SAML provider as the authoritative directory for staff accessWazuh sign-in depends on the provider being reachable, and any suspension or group change there takes effect at the next login
Roles from identity provider group membershipPlatform admins and auditors already hold groups in the provider, and you want one place to grant and revoke Wazuh accessGroup names become a contract: renaming or nesting a group can silently drop a user to a lower role, so each change needs a test login
Separate role mapping maintained in WazuhWazuh access rules must differ from corporate group structures, or the identity team will not maintain Wazuh-specific groupsSomeone must keep the mapping aligned with the provider, and stale mappings tend to accumulate after team changes
Two roles (administrator and read-only)Your SOC has a small number of people who change rules, agents or configuration, and everyone else only reviews alertsLowest mapping upkeep, but reviewers who need narrower access must be given administrator rights or handled outside Wazuh
Intermediate roles (for example analysts or agent operators)Separate teams own alert triage, agent enrollment or compliance reporting and need access limited to their workEach role adds mapping rows, test cases and review cycles; confirm with your Wazuh version which roles and permissions are available
Local break-glass accountYour policy requires access to the dashboard when the identity provider, DNS or certificates fail during an incidentThe account needs a strong, stored credential, periodic testing and a documented owner; it is a standing risk if it is not monitored
No local fallback, relying on provider recoveryYour provider is highly available and your incident process can wait for identity recoveryA provider outage or misconfigured SAML certificate can block all administrative access to the dashboard during an incident

How a dashboard login travels from the browser to a Wazuh role

The flow starts when an analyst opens the Wazuh dashboard in a browser, which sends the login to the SAML identity provider. After the user signs in, the identity provider returns a SAML assertion through the browser, and the dashboard reads the group attributes inside it. Wazuh then maps each group to either the administrator or the read-only role and creates a session with those permissions. The trust boundary sits where the assertion enters the self-hosted environment, so check assertion validation and the group claim names first. A local break-glass account follows a separate branch that skips the identity provider, so test that path on its own.

Login path from browser to role, with the break-glass branch shown separately.

How to build the SAML connection and map groups to roles, step by step

This sequence takes a Wazuh dashboard from its internal user database to SAML sign-in, with identity provider groups mapped to administrator and read-only roles and a tested break-glass path. Each step ends with a check you can run before moving on.

  1. Agree the role model and group names

    Before anyone touches a configuration file, meet the identity provider owners and the Wazuh administrators to agree which groups will exist, which people belong to each, and what each role may do in the dashboard. Keep the list short: most teams need one group for administrators and one for read-only analysts, plus a group that is deliberately empty for everyone else. Write the group names exactly as they will appear in the identity provider, because the mapping must match them character for character. The output is a signed-off table of group name, Wazuh role and named owner. You know this step is done when the identity provider owner and the Wazuh owner have both approved the same table.

  2. Register Wazuh as a SAML application

    In your identity provider (Okta, Microsoft Entra ID, Keycloak or another supported product), create a SAML application for the Wazuh dashboard. Use the vendor's Wazuh guide in the 4.14 SSO documentation for the exact entity ID, assertion consumer URL and single logout settings, and copy those values exactly rather than retyping them. Agree which user attributes and group claims the assertion will carry, and confirm the name identifier format and the group attribute name, since the Wazuh side must read the same name. The output is a registered application with a metadata file or certificate that the Wazuh team can import. You know this step is done when the identity provider shows the application assigned to a pilot group and the metadata can be downloaded.

  3. Configure the SAML connection in Wazuh

    On the Wazuh server, edit the SSO settings described in the 4.14 SSO guide, typically the security configuration of the Wazuh indexer and the dashboard settings that point to the identity provider metadata. Enter the identity provider entity ID, sign-on URL and signing certificate, and set the roles mapping key that reads the group attribute. Handle certificates deliberately: confirm which certificate signs assertions, record its expiry date, and store the Wazuh side key material with the same access controls as other component certificates. Restart or reload only the components the guide names, and apply the change with the Wazuh security administration tooling the guide specifies. You know this step is done when the dashboard shows a SAML sign-in option and a login attempt reaches the identity provider.

  4. Map groups to administrator and read-only roles

    Create the role mapping so that the administrator group maps to the Wazuh administrator role and the analyst group maps to a read-only role. Use the backend role or roles mapping configuration named in the 4.14 SSO guide, and copy the group values from the table agreed in the first step. Keep mappings explicit and avoid wildcard matches, so that a new group in the identity provider cannot inherit privileges by accident. Document each mapping with its owner and reason in your change record. You know this step is done when a test administrator signs in and sees administrator functions, and a test analyst signs in and finds those functions unavailable.

  5. Restrict access for everyone else

    Decide what happens to a user who signs in through the identity provider but belongs to none of the mapped groups. Preferably, the identity provider assignment blocks them before the assertion is sent, and Wazuh is configured to deny any user without a recognized role. Also review whether the internal user database remains enabled for day-to-day use, and limit which accounts can still sign in with local passwords. Confirm that default or shared accounts are changed or disabled as part of this step. You know this step is done when a test user outside every group is refused at sign-in and no unmapped account receives a role.

  6. Test the roles and the break-glass path

    Run a scripted test pass with one user per role and one user outside the groups. Record what each account can see and change in the dashboard, and compare the results with the role model signed off in step one. Then test the break-glass account: a local administrator kept for identity provider outages, stored in a sealed secret with a named custodian, and confirmed to sign in while SAML is in use. Repeat the test after any identity provider change, because group claim formats often shift when an application is edited. The output is a dated test record. You know this step is done when all three checks pass and the break-glass sign-in has been demonstrated, not only documented.

  7. Hand over and schedule recurring review

    Transfer ownership of the identity provider application, the Wazuh SSO configuration and the break-glass secret to named operators, and write down the procedure for rotating the signing certificate before it expires. Schedule a recurring access review in which the group membership and role mappings are checked against the signed-off table, and confirm that removed staff lose access through the identity provider. Keep the test record and the change record together so that auditors or security reviewers can trace each role to an approved decision. You know this step is done when each owner has accepted their part in writing and the first access review date is on the calendar.

Okta, Entra ID and Keycloak: where the setups differ

Okta normally sends group membership as a multi-valued attribute in the SAML assertion, and administrators decide which groups are included by configuring an attribute statement on the SAML application. The group names Wazuh receives are the ones the Okta application is set to release, so the mapping work starts in the Okta admin console rather than in Wazuh. Teams usually create a small set of dedicated groups for Wazuh administrators and read-only users so that only those groups appear in the assertion.

  • Attribute statement: Confirm the attribute name and whether the group values are sent as plain names or as IDs, since the Wazuh role mapping must match the exact string.
  • Group filter: Check whether the application uses a regular expression or a starts-with filter, and whether it limits the number of groups sent.
  • Assignment: Confirm which users receive the groups through direct assignment or through group rules, because rule changes can take effect at the next sign-in.
  • Signing and metadata: Verify the signing certificate and metadata URL in the application settings after any certificate rotation.
  • Group size: Ask whether Okta limits how many groups appear in a single assertion for your plan or configuration.

Confirm every item against the current Okta documentation for SAML applications, since attribute and filter options change over time.

What drives the effort of a Wazuh SAML integration

This table lists the factors that expand or shrink a Wazuh SAML integration and how to keep each one under control. Read each row as a lever: the left column names the driver, the right columns explain why it adds work and what to settle before the work starts. The main takeaway is that most of the effort comes from unresolved group design and identity provider setup, not from the Wazuh configuration itself.

DriverWhy it changes effortHow to keep it down
Number of identity providers and tenantsEach identity provider or tenant needs its own application registration, metadata exchange, attribute mapping and test sign-in, and multi-tenant setups add trust and claim questions.Confirm early whether one identity provider is authoritative. Limit the first phase to one tenant and add others as separate, scoped changes.
Number of roles and group complexityEvery administrator or read-only role must map to an identity provider group, and nested or overlapping groups make the mapping harder to test and explain.Limit roles to what the dashboard actually needs. Use flat, single-purpose groups and document which group grants which role before configuring anything.
Maturity of identity provider group structureGroups that are unnamed, duplicated or owned by several teams force cleanup work on the identity provider side, which is often outside the Wazuh team's control.Agree group naming and ownership with the identity team before work starts. Ask for a list of existing groups and their members so gaps show up early.
Number of environments (test, staging, production)Each environment needs its own redirect addresses, certificates and group test cases, so the same configuration is verified more than once.Reuse one test identity provider application for all non-production checks, then promote the same settings to production with only the endpoint values changed.
Access needs of auditors and read-only usersAuditors and reporting consumers often need access to specific dashboard views only, which adds a role definition and testing of view restrictions.Decide the read-only scope once, in writing, and give auditors a dedicated group rather than granting ad hoc exceptions later.
Compliance evidence for access reviewsAssessors commonly expect a record of who holds each role, when access was granted and when it was reviewed, so the group export and sign-in logs must be retained and explainable.Ask the identity team which periodic access review export they already run. Define the evidence set (group membership, role mapping, sign-in logging) in the scope before build starts.
Fallback and internal accountsDecisions about keeping internal dashboard accounts for break-glass access, and how to disable them, affect testing and the security review.Decide the break-glass policy during scoping and confirm with the security team how those accounts are stored and monitored.

How to test that role mapping works and fails safely

The test plan for Wazuh SAML role mapping should prove three things: each identity provider group lands in the right Wazuh role, read-only users cannot reach administrator actions, and access disappears when it should. Build a matrix of test accounts, one or more per group, plus accounts in no group at all and accounts in conflicting groups. For each account, record the role Wazuh assigns after login and attempt a short list of administrator-only actions, such as changing user or role settings in the dashboard, editing agent groups or touching the API configuration. A read-only account should be refused on every one of them, and the refusal should appear in the logs. Repeat the matrix after every change to group names, claim mappings or Wazuh upgrades, because a silent change in claim handling is the most common way mappings drift.

Removal tests need the most care. Remove a test account from its group in the identity provider, then check whether it keeps access in three situations: an existing session, a new login and a session after the dashboard's session timeout. Confirm the actual behavior for your identity provider and Wazuh version, since token lifetimes, group claim caching and whether the dashboard re-reads claims at login all vary by platform. Then test the failure paths. Use an expired certificate, a certificate that does not match the one configured for the identity provider, and a malformed or unsigned assertion, if your test environment can produce them. Each should fail closed, with no session created and no fallback to a permissive role. Finally, run a drill with the break-glass account stored outside the SSO path: confirm it can log in while the identity provider is unreachable, that its use raises an alert, and that its password rotation procedure works.

Failure should be visible in the logs before anyone reads the dashboard. Collect the Wazuh dashboard and API logs for each test, along with the identity provider sign-in logs for the same timestamps, and confirm that every refused login or denied action has a matching entry on both sides. Missing entries on either side are a finding in their own right. For the access review, keep the test matrix, the expected and observed role for each account, screenshots or API responses for the denied actions, the removal test timestamps, the certificate test results and the break-glass drill record, each with a named tester and date. Ask your identity team to confirm which group claim field and session lifetime apply in your tenant, and ask your security team to agree the retention period for these records before the first test run.

Securing the administrator path after single sign-on is live

Once SAML login works, the administrator path becomes the most valuable target in the Wazuh deployment. The cards below cover the decisions that keep that path controlled: the break-glass account, the signing certificate, who can change role mappings, network reach, sessions, and the split between identity provider and Wazuh administration.

Protect the break-glass local account

Keep one local Wazuh account outside SSO so administrators can still sign in if the identity provider is down or misconfigured. Give it a long, unique password, store it in a vault with restricted access, and do not use it for daily work. Configure alerting on every login to this account, and test that the alert actually reaches your security team. Record who holds the vault secret and review that list on a fixed schedule.

Manage the SAML signing certificate

The identity provider signs SAML assertions with a certificate that Wazuh must trust. Record its expiry date, the owner who renews it, and the exact steps to load a replacement into the Wazuh configuration. Plan rotation so the old and new certificates overlap or the cutover happens in a window you have tested. Confirm with your identity provider vendor how it notifies you before expiry.

Wazuh SSO guides

Limit who edits role mappings

Group-to-role mappings decide who becomes an administrator, so changes to them are privileged changes. Restrict edit rights on the identity provider groups that feed these mappings, and require a second approver for any change that grants the administrator role. Keep a change log in the identity provider and review it against Wazuh login records. A user who can add themselves to an administrator group has effectively bypassed the mapping.

Restrict dashboard reach to approved networks

Single sign-on does not limit where the dashboard can be reached from. Place the Wazuh dashboard behind approved network paths such as a management subnet, a VPN or a privileged access gateway, and block direct access from general user networks. Confirm the restriction at the load balancer or firewall and test it from an unapproved network. Document which source ranges are allowed and who approves changes to them.

Review sessions and timeouts

Decide how long an administrator session may stay open, how it ends after inactivity, and whether re-authentication is needed for sensitive actions. Align these values with your identity provider session policy so a revoked user cannot keep working in an open browser tab. Test sign-out and account disablement in the identity provider, then confirm the Wazuh session actually ends. Review these settings after every upgrade, since defaults can change.

Separate identity provider and Wazuh admin roles

The people who administer the identity provider should not automatically hold the Wazuh administrator role, and Wazuh administrators should not control the identity provider. Split these duties between separate teams or separate named accounts, so one compromised account cannot both grant access and use it. Write down which role owns the SAML application, the group mappings and the Wazuh roles, and review that split when staff change.

What to monitor, back up and document once SSO is running

Once SAML sign-in to the Wazuh dashboard works, the operating risk shifts to what changes around it. Set up alerting on failed and unexpected dashboard logins before go-live, and route it to the team that owns the identity provider as well as the Wazuh operators. Watch for bursts of failures against a single account, sign-ins that succeed for users who should have been removed, and logins that bypass SSO entirely through the internal user database. Confirm with your identity provider's logs which fields it exposes for each sign-in, so you can correlate them with Wazuh dashboard access events rather than assuming the two logs line up.

Group membership drifts. Review the members of the identity provider groups that map to the administrator and read-only roles on a fixed schedule, and record who approved each change. Track certificate expiry dates for the SAML signing and encryption certificates on both the identity provider and the Wazuh side, with reminders well ahead of expiry. Patch releases on the 4.14 line arrive roughly every one to two months, and identity provider changes can also affect the SAML configuration, so schedule a short retest after each. Read the release notes first for any authentication or dashboard behavior change, and confirm the SAML settings still work before applying the update to production.

Back up the security configuration, including the SAML settings, role mappings and the internal break-glass administrator account, and store the copy in a location separate from the Wazuh servers. Test that a break-glass login actually works on a schedule, and keep its credentials in a sealed, audited store with a named owner. Finally, document the group-to-role mapping as a controlled record: which identity provider group maps to which Wazuh role, who owns each mapping, the change history, and the date of the last retest. Auditors and incident responders will ask for this record, so keep it versioned alongside the configuration backups.

Questions teams ask before connecting Wazuh to their identity provider

How much effort does a SAML integration with Wazuh usually take?

The effort depends less on Wazuh itself and more on how much the identity provider and the Wazuh environment already look like each other. Wazuh supports SAML single sign-on alongside its internal user database, and it has documented guides for Okta, Microsoft Entra ID, Keycloak and several other providers. The main drivers are whether the dashboard is reachable at a stable URL with valid certificates, how many applications and groups the identity provider must map, whether separate environments such as test and production need their own configuration, and how much of the role model has been agreed in advance. Ask any provider for a written scope that lists these items so the effort is visible before work starts.

Can an internal team connect Wazuh to SAML without a partner?

Often yes, if the team has someone comfortable with SAML metadata, certificates and the identity provider's admin console, and if the Wazuh deployment is already running and stable. The work is configuration rather than custom code, so the skills gap is usually in identity federation and in testing login paths safely. A partner adds value when the team lacks that experience, when several identity providers or environments must match, or when the connection must be documented for a compliance review. Whichever path you choose, keep a local administrator account available until SSO and the role mapping have been tested end to end.

What does the work need from the identity provider owners?

The identity provider team usually controls the work that matters most, so involve them early. They need to create the SAML application, agree on the entity identifier and reply URL for the Wazuh dashboard, supply or confirm the signing certificate and metadata, and decide which attributes or claims carry group membership. They also need to confirm who may assign users to the application and how changes are approved. Ask them to name an owner for the application and a change process, because role mapping depends on groups that they maintain.

Does SSO replace the local Wazuh accounts entirely?

Not necessarily. Wazuh can use SAML alongside its internal user database, so local accounts can remain in place during and after the rollout. Many teams keep one or two break-glass administrator accounts with strong, stored credentials so that the dashboard stays reachable if the identity provider is unavailable or misconfigured. Decide which accounts stay, who holds their credentials, how they are audited, and when they are used. Document that decision, since auditors often ask how administrative access works when the identity provider is down.

How do group changes in the identity provider take effect in Wazuh?

Group changes take effect at the next sign-in, after the identity provider sends updated group claims and Wazuh maps them to roles. A user who is removed from an administrator group may keep elevated access until a new session begins, so review session lifetimes and sign-out behavior with your identity team. Test the case where a user moves from read-only to administrator and back, and confirm that the mapping does not grant roles by default. Keep the mapping simple, with one identity group per Wazuh role, so that access reviews can be done in the identity provider alone.

How should contractors and auditors get access to the Wazuh dashboard?

Give them separate identity provider groups that map to the read-only role, and set expiry or review dates on their accounts where the identity provider supports them. Avoid sharing a generic account, because alert and audit trails then cannot show who viewed what. Confirm that contractors who need administrator rights for a limited task receive them through a time-bound process and are removed afterward. Ask your identity team whether guest or external identities can authenticate to a SAML application in your tenant, since that policy varies by provider and configuration.

What should we ask for in a quote for this work?

Ask for a written scope that names each identity provider and each Wazuh environment in scope, the number of groups to map to roles, and whether test and production are both covered. Request a list of deliverables, such as the configuration record, the role mapping table, the break-glass account procedure and the test results for each login path. Confirm what is excluded, for example changes to the identity provider's policies, multi-factor settings or other applications. Ask how retesting is handled if the identity provider configuration changes later, and whether ongoing support is priced separately.

How DeployOpen scopes, builds and hands over a Wazuh SSO integration

DeployOpen connects the Wazuh dashboard to your SAML identity provider in your own infrastructure, then maps identity provider groups to administrator and read-only roles. Each step is agreed in writing before work starts, so your identity, security and Wazuh teams review the same plan and the same test results.

How we scope

  • Confirm which identity provider you run, such as Okta, Microsoft Entra ID or Keycloak, and its SAML version and settings.
  • List the Wazuh dashboard hostnames, certificates and user groups that will sign in through single sign-on.
  • Agree in writing how identity provider groups map to administrator and read-only roles, and who approves changes.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.

How we build

  • Configure the SAML connection on the Wazuh dashboard in a staging environment that mirrors production settings.
  • Map group claims to Wazuh roles and test each role with named sample accounts, including denied access cases.
  • Confirm that the internal user database stays available for break-glass access, and document how it is protected.
  • Review audit logging for sign-ins and role changes so your security team can trace who accessed the dashboard.

How we hand over

  • Deliver a configuration record covering identity provider settings, claim mappings, role assignments and certificate locations.
  • Provide a runbook for adding users, changing group mappings and rotating signing certificates without an outage.
  • Walk your identity and Wazuh operators through the setup and the test results, and record open questions with owners.

How we support

  • Retest single sign-on after Wazuh upgrades, since the 4.14 patch releases can change dashboard behavior, and confirm the current release notes first.
  • Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the original engagement.
  • Ask any provider to confirm which identity provider versions and Wazuh releases their tests covered before you sign.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.