Security

Splunk Dashboard to show fields based on the user role

Priya312
Explorer

Hi,

Currently I'm developing a html dashboard which every users can view it.
But in the drilldown of the dashboard, a set of fields will be displayed as table.
I want to show the value of particular field only to certain users and for other users the field should be hidden/shown without any values.

How can i achieve this in HTML dashboard?

Tags (2)
0 Karma

vasanthmss
Motivator

You can put your custom field filter into "search time restrictions" on the Roles. Go to Settings-> Access controls » Roles -> YOur Role for each user -> Search Restrictions -> Restrict search terms"

Or create some lookup with following details user roles and required fields. Use the lookup in youe search.

you can retrieve the logged in user details by using this query,

| rest /services/authentication/current-context splunk_server=local  | table username,realname,roles

Check this post http://answers.splunk.com/answers/28633/current-user-in-search.html

V
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...