Splunk Search

Restricting search using lookup table

nandm
New Member

I have a scenario where I need to restrict 100+ users within an index to their respective departments. I created an app with views where the dropdown field is populated using a lookup table for departments and this works great based on the logged in user/role. However the user is still able to access the entire index using the search app available globally.

Is there a way to use 'Restrict search terms' field within the role to specify a lookup table and restrict the user to specific departments so the implied search string would inherit something like :

department="1234" OR department="4567" (where the value is a lookup field.)

I know it can be achieved by creating several roles and assigning them individually, however I am trying to automate this so that a single role caters for all the users.

0 Karma

dart
Splunk Employee
Splunk Employee

My suggestion would be to write a script against the SDK to do this. Check out the docs on access and roles http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTaccess

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...