Hi,
we would like to use Grafana for multiple customers and support groups.
We would like to avoid creating teams and multiple dashboards since every customer/sg should get the same dashboard.
Is it possible to use variables that can not be changed via URL or in any other way. In this case we could create a scope “query variable” for the user_id that contains the allowed customers.
Or is there any other possibility to achieve this?
Here’s the scenario I could imagine.
There are 2 dashboards. The first dashboard shows all customers for which the employee is authorized. Simple query with the ${__user.id} variable.
With a drill down the user would now have the option to click on a customer (based on the customer id) to get to the customer dashboard. Here all necessary information for the customer is displayed. But if I change the URL variable customer_id, the user would also see data of customers he is not authorized for. If he wouldnt be able to change the variable, i could avoid to create teams and seperate dashboard permissions.
Thanks for you reply.
If I understand this correctly, I should include the UserID in each panel and use a join to check if the user is authorized for that company. This probably does not work with every data source and slows down queries enormously if there are many customers and users in a lot of panels.