All Apps and Add-ons

Role based dashboard/view

chris
Motivator

Is there a possibility to access the role(s) of a user who is viewing a dashboard? Statrting from a base dasboard I would like to redirect power users to a different drilldown dashboard than regular users. If there is something like $role$ key/array that could be used, different urls could be constructed for different roles.

Thanks

Chris

1 Solution

sideview
SplunkTrust
SplunkTrust

How you have to do it, is that you have more than one copy of that base dashboard as well. Regular users see one copy of it, and power users another. The only difference between the two is that the drilldowns go to the corresponding drilldown views, which have similar permissions. To expand a little bit on the "permissions", you go into Manager > Views and you use the little "permissions" links to set which roles can see which views.

As far as just getting a $user.role$ key or something courtesy of Sideview Utils, and forking off of that in one dashboard, no I'm afraid there isn't. ValueSetter will be getting a way to set certain values conditionally, sometime later this year, and I might one day submit to the user requests for such a $role$ key, but the best way to do this is just duplicating both views and setting appropriate permissions in Manager as described above.

View solution in original post

sideview
SplunkTrust
SplunkTrust

How you have to do it, is that you have more than one copy of that base dashboard as well. Regular users see one copy of it, and power users another. The only difference between the two is that the drilldowns go to the corresponding drilldown views, which have similar permissions. To expand a little bit on the "permissions", you go into Manager > Views and you use the little "permissions" links to set which roles can see which views.

As far as just getting a $user.role$ key or something courtesy of Sideview Utils, and forking off of that in one dashboard, no I'm afraid there isn't. ValueSetter will be getting a way to set certain values conditionally, sometime later this year, and I might one day submit to the user requests for such a $role$ key, but the best way to do this is just duplicating both views and setting appropriate permissions in Manager as described above.

chris
Motivator

Thank you.

0 Karma
Get Updates on the Splunk Community!

What’s new on Splunk Lantern in August

This month’s Splunk Lantern update gives you the low-down on all of the articles we’ve published over the past ...

Welcome to the Future of Data Search & Exploration

You have more data coming at you than ever before. Over the next five years, the total amount of digital data ...

This Week's Community Digest - Splunk Community Happenings [8.3.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...