Wazuh RBAC: internal users, roles and mappings

How to give Wazuh analysts, administrators and auditors the right access through internal users, indexer role mappings and Wazuh API RBAC, with read-only access for auditors.

On this page

Wazuh RBAC: who can see and change what in your SIEM

A SOC team, platform administrators and auditors sharing one Wazuh deployment need different access, and the cleanest way to give it is to create named internal users, assign each a role that matches their job, and map those roles to the permissions they need in both places Wazuh enforces access: the dashboard and indexer security layer, and the Wazuh server API. Those two layers use separate RBAC models. A user who can search alerts in the dashboard is not automatically allowed to change agent configuration or call the API, and the reverse is also true, so the access design has to cover both before anyone is onboarded.

Plan this work before onboarding analysts, before an auditor asks for evidence of who can view or change alerts, and after a shared administrator account is found in use. In the last case, the shared account is usually the first thing to replace, because it hides who did what in the audit trail. Start by listing the roles each group needs, then confirm which indexer roles and which API roles map to them, and test each account with its intended permissions. Auditors in particular need read-only access that you verify by attempting a write, not by reading the role name. Confirm the exact role names, mapping file locations and permission sets against the RBAC guide for your installed version, since they change between releases.

Document the result as an access matrix that names each internal user, the group it belongs to, the indexer and API roles it holds, and the reviewer responsible for it. Keep at least one break-glass administrator account stored under your own change control, and check that it works before you rely on it. The same matrix will later feed SSO role mapping and any dashboard login integration, so changes made now should be recorded in a form that can be reused. Ask your implementation partner for a written access matrix and a test log showing which accounts were denied which actions.

Which access model fits each Wazuh role

This table compares four access models for Wazuh: internal users with indexer role mappings, Wazuh server API RBAC, SAML single sign-on, and a separate service account for integrations. Read each row to see when the model fits, what it controls and the main trade-off before you assign anyone a role.

Access modelWhat it controlsWhen it fitsMain trade-off
Internal users with indexer role mappingsDashboard login and the indexer roles and permissions each user inherits through mapped rolesSmall teams with few users, or a fallback admin account kept alongside a central identity sourceEach account is created and changed by hand, so offboarding and access reviews rely on your own process
Wazuh server API RBAC with rbac_controlWhich API users may call which endpoints, through roles, policies and the authorization contextAutomation and administrative API tasks that need narrower rights than a full administratorPolicy definitions are managed separately from dashboard roles, so both sets must be reviewed together
SAML single sign-on as the identity sourceDashboard sign-in through your identity provider, with group claims mapped to Wazuh rolesOrganizations that already manage analysts and auditors centrally and want joiner and leaver changes in one placeDepends on the identity provider and the mapping being correct, and you still need a tested local admin for recovery
Separate service account for integrationsA non-human identity with only the rights a connector or script needs, kept apart from people's accountsSIEM forwarding, SOAR playbooks, ticketing or reporting jobs that call Wazuh on a scheduleCredential rotation and ownership must be planned, and a broad service account becomes a high-value target
AnalystsAlert triage, search and investigation views in the dashboard, typically without administrative settingsDaily security operations where analysts need to query alerts but not change configurationAnalysts often need more than read access over time, so role scope needs periodic review
AdministratorsIndexer, server and dashboard configuration, user and role management and API administrationA small number of platform owners who maintain the deploymentFull administrative rights are broad, so keep the number of administrators low and record their use
AuditorsRead-only views for evidence collection, with no ability to change rules, agents or usersCompliance reviews that need to see configuration and alerts without altering themConfirm exactly which views and API calls a read-only role can reach in your version before promising read-only access
AutomationScripted API calls or integration pipelines acting under a dedicated identityRepeatable tasks such as agent checks, report exports or ticket creationScripts with stored credentials create secret handling work, so store them in a secrets manager you control

How to give auditors read-only access without exposing changes

Auditor access in Wazuh has two layers: the dashboard and the Wazuh server API. A read-only auditor role has to be defined and mapped in both, then proven with a non-admin account before evidence goes to the auditor. The cards below cover the role, the checks and the evidence package.

Define a dedicated auditor role

Create a role for auditors that carries read permissions only and do not reuse an analyst or administrator role with a changed name. In the Wazuh dashboard layer, the role is mapped to internal users in the indexer security configuration. The role should be scoped to the views and index patterns the audit needs, so that auditors see the evidence without seeing unrelated tenant data. Confirm the exact role names and permission sets against the RBAC documentation for your version.

RBAC docs

Mirror the role in the API layer

The Wazuh server API has its own role-based access control with roles, policies and an authorization context, managed with the rbac_control tool. An auditor who can log in to the dashboard but still holds broad API rights can change agents or rules through API calls. Create an API role with read policies only, then bind the auditor's API user to it. Keep the dashboard and API mappings in a single record so the two layers cannot drift apart.

Verify that changes are blocked

Log in as the auditor and attempt the actions that must fail: editing rules or decoders, changing agent group assignments, modifying the agent configuration, creating users and altering roles. Repeat the same attempts through the API with the auditor's token. Each attempt should return a denial, and the denial should appear in the audit trail. Record the test date, the account used and the results, since this record is the proof that the control works.

Test with a non-admin account

Do not rely on the role definition alone. Create a test account bound to the auditor role, log in to a separate browser session, and walk through the views the auditor will use. Confirm the visible data and the blocked actions match the intended scope. Repeat the test after every upgrade, since role permissions and view names can change between releases and each 4.14 patch needs a re-check.

Assemble the evidence package

Give the auditor the role definitions from the indexer security configuration and the API RBAC configuration, the list of internal users with their assigned roles, and the mapping files that connect users to roles. Add the test record that shows a non-admin account could read but not change anything. Remove password hashes and secrets from every file before sharing. Ask the auditor which format they need, since they may want exports or screenshots.

Track auditor accounts over time

Auditor access should end when the audit ends. Set a review date for each auditor account, remove unused users, and check the mappings after any change to the identity provider or to the internal user list. If the organization later adds SAML single sign-on, decide whether auditor roles come from identity provider groups or stay as internal mappings, and document that decision with the role file.

Steps to create users, roles and mappings in order

This sequence moves from an access inventory to tested, change-controlled Wazuh roles in both the indexer and the Wazuh API, so each analyst, administrator and auditor gets only the access their job requires.

  1. Inventory who needs access and to what

    The platform owner and the security lead list every person or group that will use the Wazuh dashboard or API, the tasks each one performs (triage, rule changes, agent administration, reporting, read-only audit review) and the agents, groups or indexes they should see. The output is a written access matrix that names each role and its boundaries. Confirm the list with the team that owns each function before building anything, because later steps are only as accurate as this matrix.

  2. Define roles and least-privilege permissions

    Using the access matrix, the security lead defines the roles that will be assigned, such as analyst, administrator and auditor, and records which indexer permissions and which Wazuh API actions each role needs. Start from the most restrictive set and add permissions only when a named task requires them. Check the matrix against the Wazuh RBAC reference for the exact role and permission names in your release line, since names can change between versions. The output is a reviewed role specification that a second person has signed off.

  3. Create internal users in the indexer

    An administrator creates each internal user in the Wazuh indexer security configuration using the documented RBAC steps for internal users, and sets a unique password for each account. Do not reuse shared accounts or the installer defaults. Confirm that each user appears in the internal user list and that the account names match the access matrix. Record the user list, owner and purpose in your configuration inventory so every account has an accountable person.

  4. Map users to roles in the indexer

    The administrator maps each internal user, or a backend role, to the indexer roles defined in step two, following the mapping steps in the Wazuh RBAC documentation. Mapping by backend role keeps the configuration smaller when several people share a function. Apply the changes with the security configuration tooling the documentation describes, then confirm that the mapping file reflects exactly the intended users. The check is a login test in the next step, not the mapping file alone.

  5. Define Wazuh API roles, policies and rules with rbac_control

    Using the rbac_control tool and the Wazuh API RBAC reference, an administrator creates the API policies that match each role, binds them to roles, and links roles to users or to the authorization context the documentation describes. Keep API permissions aligned with the indexer roles so a person cannot gain broader rights through one path than the other. The check is that rbac_control lists the expected roles and policies with no unexpected entries, and that each policy contains only the actions defined in the matrix.

  6. Test each role with a dedicated test account

    For each role, the administrator signs in with a dedicated test account that has only that role and attempts the tasks it should allow and the tasks it should deny, both in the dashboard and through the API. The security lead reviews the results against the access matrix and records every unexpected allow or deny. Fix the mapping or policy, then repeat the test for the affected role. The output is a signed test record showing that each role behaves as specified, including the auditor role's read-only restrictions.

  7. Remove or rename default accounts

    Once the production roles are verified, the administrator disables, removes or renames default and installer-created accounts that are not needed, and confirms that the remaining privileged accounts are limited to named break-glass use. Changing default passwords is covered in its own procedure, so confirm that task is complete before closing this step. The check is an updated user list showing no unused default accounts with active access and a documented location for the break-glass credentials.

  8. Record the mapping as change-controlled configuration

    The platform owner stores the role definitions, user-to-role mappings, API policies and the signed test record in version control or the change-management system, and requires an approved change request for every future edit. Schedule a periodic access review that compares the live configuration with the stored copy and removes accounts for people who have left or changed roles. The output is a baseline that an auditor can compare with the live system, which is the evidence most reviewers ask for first.

How a login reaches the indexer and API permissions

The flow starts when an analyst or auditor signs in to the Wazuh dashboard, either with an internal user or through SAML single sign-on. The dashboard then talks to two separate permission systems: the indexer security plugin evaluates role mappings for alert and dashboard data, and the Wazuh server API evaluates its own RBAC roles and policies for management actions. Check that the auditor role is read-only in both systems, because a grant in one does not limit the other.

Login path through the dashboard to the indexer and the Wazuh server API, with both trust boundaries marked.

Security risks in Wazuh access control to close

Wazuh access is split across the indexer, the dashboard and the server API, and each layer has its own users and roles. The risks below tend to appear together when a deployment is built quickly and never reviewed, so each card pairs a risk with the check and fix that closes it.

Shared administrator accounts

When several engineers log in with one administrator account, the dashboard and API audit trails cannot show who changed a rule, role or agent group. Create a named internal user for each administrator and reserve the built-in admin account for break-glass use. Confirm that each person's actions appear under their own username in the audit logs before you retire the shared login.

RBAC user guide

Built-in users left unchanged

Wazuh ships with built-in users whose names and initial credentials are widely known, so an unchanged account is an easy entry point. Check every built-in user across the indexer, dashboard and API, and disable or rotate the ones you do not need. The steps for replacing default passwords are covered on the sibling page on changing Wazuh default passwords.

Roles broader than the job

Mapping an analyst to a role that also allows user management, agent deletion or configuration changes gives that person powers the job does not need. Start from the least-privileged role that covers the task, then add permissions only when an analyst can show a specific need. Review each custom role's permission list against a written description of the job it serves.

API roles out of step with dashboard roles

The Wazuh server API has its own role-based access control, separate from the roles that govern dashboard users. A person may be restricted in the dashboard yet still hold a broader API role, or the reverse, which creates gaps that are hard to see. Keep a single matrix that lists each job function, its dashboard role and its API role, and check both against it. Hardening the API user itself is covered on the sibling page on securing the Wazuh server API.

No review of administrator rights

Administrator rights tend to accumulate as people change teams, and nobody removes them when someone leaves or moves to a role that no longer needs them. Schedule a recurring review of who holds admin rights in the indexer, dashboard and API, and record the reviewer and the date. Ask your identity team whether the approval process for granting admin rights is documented and enforced.

Questions teams ask before changing Wazuh access

How much effort does a Wazuh role model take?

The effort depends on how many teams need separate access, how many tenants or environments they span, and how many systems their roles must reach. A small deployment with one analyst group, one administrator group and one auditor group is a short exercise. Each added team, environment or system multiplies the mappings you must write, test and document. Before any work starts, ask for the access matrix that lists each role, the permissions it gets in the Wazuh indexer and the Wazuh server API, and the people who approve each change. That matrix is what turns a vague estimate into a bounded scope.

Can an internal team set up Wazuh RBAC alone?

Often yes, if the team has someone comfortable with Linux administration, the Wazuh indexer security configuration and the Wazuh API. The work involves creating internal users, defining roles and mapping them to users, then checking that each role can do exactly what it should and nothing more. It also involves reviewing the API RBAC model, which uses roles, policies and an authorization context. Skills needed include reading the Wazuh RBAC documentation, handling certificates and a test environment where mistakes do not affect analysts. Teams without these skills usually benefit from a short review or a partner-led build.

What does the client need to provide for an RBAC project?

Three inputs make the work predictable. First, an access matrix that maps job functions such as analyst, administrator and auditor to the data and actions each needs. Second, a named identity owner who decides who gets which role and signs off changes. Third, a test account for each role, so the team can confirm access before users see production alerts. You should also confirm who holds the initial administrator credentials, how they are stored and how changes will be logged. Without these inputs, the work tends to stall on decisions rather than configuration.

How long does Wazuh RBAC take to implement?

Duration depends on scope, which is why it should be fixed in a written plan before work begins. The main drivers are the number of roles, whether roles must differ by tenant or environment, how many API actions need restriction, and how much testing and documentation the auditors expect. We have not published a duration for this work, and none is supplied here. Ask for a plan that lists each phase, the deliverables at each step, the test cases used to verify access and the dependencies on other teams such as identity or change management.

When does adding SAML or LDAP change the RBAC work?

Adding an external identity provider changes where users come from and how group membership becomes a role, so it adds design work. With SAML single sign-on, Wazuh supports several documented identity providers, and role mapping must be planned together with the provider's group claims. With LDAP or Active Directory, group-to-role mapping and secure directory connections become part of the build. Internal users still matter for fallback administrator access, so the plan should keep at least one tested local path. Confirm early whether your identity team will own group membership, because that decision sets how much mapping work remains on the Wazuh side.

How do auditors get read-only access to Wazuh?

Auditors need a role that can view alerts, compliance dashboards and configuration evidence without changing rules, agents, users or API settings. The design is to create a read-only role in the indexer, map it to an auditor user or group, and remove any write permissions the role inherits from broader defaults. Then test it by logging in as the auditor and attempting actions it should not allow. Ask the auditing team which evidence they need, such as dashboard exports or user lists, because that determines which read permissions must stay in the role.

What should we verify after changing Wazuh roles?

Verify three things: that each role can perform its intended tasks, that no role can perform tasks outside its scope, and that the changes are recorded. Test with real login sessions for each group, including denied actions in both the dashboard and the API. Check the indexer security audit trail for role and mapping changes and keep the access matrix current. Repeat these checks after upgrades, because permissions can change between releases. Current Wazuh patch releases come roughly every one to two months, so schedule a repeat check with each planned upgrade window.

What does a wrong Wazuh role mapping break?

A wrong mapping can lock analysts out of alerts, let administrators miss needed permissions or give auditors more access than intended. The most serious failure is an over-broad role that exposes configuration or credentials to people who should only read alerts. Less obvious failures include a dashboard that loads but shows no data because an index permission is missing. Keep a tested fallback administrator path, record the previous mapping before every change and roll back if tests fail. Confirm with your Wazuh administrators how rollback will work in your deployment before the first change is made.

Limits to confirm in your environment

The access model in this topic depends on details that change between releases and deployments. The cards below list what to confirm in your own Wazuh environment before you write role mappings or grant auditor access, so the design you approve matches what the running system enforces.

Permission names in your version

Role names, action names and their policies are the first thing to verify. Wazuh's API RBAC uses roles, policies and an authorization context, and the exact permission strings can differ between releases. Export the role and policy list from your own server and record it with the version you run. Your Wazuh line is 4.14, so confirm every name against that line, not against examples copied from older guides or forum posts.

RBAC reference

Version-specific changes

Before you rely on any role behavior, read the release notes for every patch you plan to run. Patch releases in the 4.14 line have shipped roughly every one to two months, so a permission change or fix can arrive between your design review and go-live. Note the release you tested, and repeat the check after each upgrade of the server, indexer or dashboard.

Release notes

Auditor access method

Decide whether auditors need dashboard views or API reads, because the two need different roles. A dashboard-only auditor needs search and visualization rights without write or agent management actions. An auditor who pulls evidence through scripts needs read-only API roles and a documented way to reach the API port. Test both paths with a sample read-only account and confirm that nothing outside the approved scope is visible.

How rbac_control behaves

The rbac_control tool manages RBAC objects on the server, so its effect on your deployment must be tested rather than inferred. Confirm which changes it applies immediately, which need a server restart or cluster synchronization, and whether it changes objects on every node in a cluster. Record the command sequence, run it in a non-production copy, and keep a rollback path for any role you edit.

External identity overrides

If you also configure single sign-on or directory authentication, confirm which source decides a user's roles at login. An external identity provider can assign groups that map to roles, and those mappings can take precedence over or conflict with local internal users. Test a user who exists in both places, confirm the effective role in the dashboard and API, and document who owns each mapping source.

Single sign-on guide

How to review Wazuh access on a schedule

Access to a Wazuh deployment drifts over time, so the review needs to be a recurring task with a fixed set of exports. Each review should export the internal users, the roles assigned to them, and the mappings that connect users and roles in the Wazuh indexer security configuration and in the Wazuh server API RBAC. Store those exports with the date and the Wazuh version, then compare them line by line against your access matrix. Any account that holds a role the matrix does not grant, any shared account, and any user who has left the organization should be flagged. Remove leavers in every layer: the dashboard user, the API user, and any role mapping that still refers to them. Check that the built-in accounts are still reserved for break-glass use, and that the auditor role has no write permissions.

Upgrades are the step most likely to change access silently, so retest auditor read-only access after each one. Wazuh shipped 4.14 patch releases on 17 March, 23 April, 1 July, 29 July, 23 September and 14 October 2026, roughly one every one to two months, and each release should be checked against its notes in the Wazuh release notes before you apply it. Confirm in those notes whether security configuration, RBAC policies or the API user store changed, and plan the retest for those areas. Ask the auditor test account to attempt a read of alerts and agent configuration, and an attempt to change a rule, a user or a role. Each attempt should fail, and the result should be recorded with the version number.

Set the cadence, owner and evidence format before the first review, and keep the matrix under version control so every change has a reason. Confirm with your Wazuh support channel or your own test environment which configuration files and API endpoints hold RBAC data in your installed version, because the export steps differ between deployments. Record each review as a dated ticket with the exported files, the list of removed accounts, the retest results and any open exceptions with an owner and a close date. This record is what an internal auditor or external assessor will ask to see, and it is cheap to produce if it is built into the review from the start.

How DeployOpen scopes and delivers Wazuh access control

DeployOpen treats Wazuh RBAC as a access design exercise before it is a configuration task. We map who needs which view of alerts, agents and API actions, then build internal users, indexer role mappings and Wazuh API RBAC to match that model, and hand over the result with evidence that your security and compliance teams can review.

How we scope

  • Interview analysts, administrators and auditors to define the roles each group actually needs.
  • Inventory existing users, shared accounts and any default credentials that must be replaced first.
  • Agree in writing which Wazuh API actions, dashboard views and indexer permissions are in scope.

How we build

  • Create internal users and map them to indexer and Wazuh API roles in a documented, repeatable sequence.
  • Configure read-only auditor access and confirm it cannot change rules, agents or configuration.
  • Test each role with real login attempts and API calls, recording what each account can and cannot do.

How we hand over

  • Deliver a role matrix mapping each user group to its permissions, with the configuration files changed.
  • Document the procedure for adding users, rotating credentials and removing access when people leave.
  • Walk your administrators through the access review steps so they can repeat them without us.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Ask any quote to itemize the role design, testing and documentation work separately from retainer support.

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.