Dashboards & Visualizations

Dynamically display panel based on role

tdiestel
Path Finder

Hi All;

Is it possible to dynamically display an entire Panel on a dashboard based on the user/role?

If so, what's the simplest way to approach this?

Thanks,
Tyler

0 Karma

masonmorales
Influencer

Sort of. Assuming that the data for your dashboard panels all reside in the same index, I would recommend moving your restricted panel search to a private scheduled search that writes to a summary index. Then, you could restrict which roles could read the summary index (which is holding the results from your scheduled search). Since your restricted dashboard panel would be searching the summary index, users that aren't part of a role that has access to it wouldn't be able to see the results for that panel.

masonmorales
Influencer

Your other option would be to create two versions of the dashboard (one with the restricted panel, one without it), and set role-based permissions on the two views. But, who wants to maintain two versions of a dashboard? 😉

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...