docs/ref/modules/rbac/README.md
Wazuh RBAC allows access to Wazuh resources based on the roles and policies assigned to the users. It is an easy-to-use administration system that enables managing users' or entities' permissions to the system resources.
To learn more, see the Role-Based Access Control section.
The Wazuh platform includes an internal user database that can be used for authentication. It can also be used in addition to an external authentication system such as LDAP or Active Directory. Learn how to create users and map them with Wazuh in the sections below.
Follow these steps to create an internal user, create a new role mapping, and give administrator permissions to the user.
admin as the Backend role, and click Create.administratorEnsure run_as is set to true in:
/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
Restart the dashboard service and clear browser cache.
cluster_composite_ops_ro*readglobal_tenant (Read only)Restart dashboard and clear cache.
Agents example:
Create role with DLS for alerts:
{
"bool": {
"must": {
"match": {
"agent.labels.group": "Team_A"
}
}
}
}
Create role with DLS for monitoring:
{
"bool": {
"must": {
"match": {
"group": "Team_A"
}
}
}
}
Map role to user.
agent:readagent:groupTeam_Acluster_readonly.User will only see Team_A agents.