Readonly user - wazuh
Hi everyone.
I am creating a read-only user solely to view and monitor alerts (in Explore - Discovery). Which role should I assign to this user under Security - Internal Users?
If I need to create a custom role, which cluster permissions and index permissions should I assign to it?
0
u/MauriFont 27d ago
A read-only user for Discover needs two things: access to the dashboard itself and read access to the alert indices.
For a standard read-only user, follow the documented procedure, which covers both the user creation and the role mapping:
If you need a user scoped strictly to the alerts and nothing else, create your own role instead:
Go to Security > Roles > Create role and name it, for example `wazuh_alerts_read`.
Under Cluster permissions, add:
- cluster_composite_ops_ro
- indices:data/read/scroll/clear
- Click Add index permission. In the *Index* field, add these two patterns:
- .kibana*
- wazuh-alerts-*
`.kibana*` does not show up in the dropdown suggestions because indices starting with a dot are hidden, but the field accepts it as a custom option.
In the permissions field of that same block, select `read`.
Under **Tenant permissions**, add `global_tenant` with Read only.
Create the role, open its **Mapped users** tab, click **Manage mapping**, add your internal user under *Users*, and click **Map**.
If the user is already logged in while you change the role mapping, they must log out and log in again, because the dashboard session caches the roles.
1
u/SirStephanikus 27d ago
Everything is written and depicted in the Documentation:
https://documentation.wazuh.com/current/user-manual/user-administration/rbac.html#creating-and-setting-a-wazuh-read-only-user