
Hi Pedro,
Yes my goal is to map the logged-in Dashboard user (with a backend role) to the API RBAC so that API access is restricted per tenant. I’ve already tested run_as for resource-level RBAC, and it works perfectly for restricting access to agents/groups per tenant.
The challenge I’m facing is that even with run_as and role based policies, the dashboard still shows all API endpoints and allows switching between different Wazuh APIs (other tenants). What I wanted to know is if a true API-level RBAC can be achieved where users only see and can access the endpoints they’re allowed to, and cannot interact with other tenants at all.
I’ll look into the Authorization Context documentation you shared in the meantime. I’d really appreciate any insights from your team on handling multi-tenant API access restrictions and dynamic endpoint visibility in the Dashboard.

