Hello!
Please review while mapping the user with the Wazuh API, you have given the correct permission.
Go to Server management > Security.
Check the
Roles mapping
If you made a custom role. Review the permission you have given to that custom role from the Role section.
Check this document to review your role permissions:
https://documentation.wazuh.com/current/user-manual/api/rbac/reference.html
For the role mapping to take effect, ensure that the run_as value is set to true in the
/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml configuration file.
Restart the Wazuh dashboard service and clear your browser cache and cookies.
systemctl restart wazuh-dashboard
You can also check these use cases and follow the step-by-step guide:
Creating and setting a Wazuh admin user
Creating and setting a Wazuh read-only user
Give a user permissions to read and manage a group of agents
Let me know if you need any further help.