Splunk Search

Restrict access to "Manager"

namanjoshi
Explorer

Hi,

I running Splunk 4.1.6 and I'm trying to create a role which allows the user to only have read access to the Search app. i.e. They can only do native and saved searches.

However, even at the lowest level of privileges it seems the user always has access to the "Manager". Is there anyway to restrict this? Can i remove the link from the search app?

Thanks

Tags (2)
0 Karma
1 Solution

namanjoshi
Explorer

I added the following

javascript:alert(document.links[1].style.display="none")

to application.js and it works beautifully.

Thanks

View solution in original post

0 Karma

frankfowler
Explorer
0 Karma

namanjoshi
Explorer

I added the following

javascript:alert(document.links[1].style.display="none")

to application.js and it works beautifully.

Thanks

0 Karma

mw
Splunk Employee
Splunk Employee

To add to what Sean said, when you use advanced XML, you can only actually remove the entire "AccountBar", meaning all of those links, or leave it in. However, if I'm in an app, I can paste this into the URL bar and the "Manager" link will hide for me, so I imagine that a custom application.js could get you what you want:

javascript:{$('a[href*="/manager/"]').hide()}

namanjoshi
Explorer

Thanks mw. I tried the javascript you mentioned and in Chrome it seems to work, but not Firefox. Any tips?

(My html is not as good as it used to be)

0 Karma

sdwilkerson
Contributor

namanjoshi,

You can certainly customize "search" or create a custom app that doesn't provide links to manager or other apps to the users. Additionally, you can configure Splunk to put certain users in this app by default.

There is Splunk documentation on how to customize a dashboard.

Note, to do what are you're asking requires the advanced dashboard XML.

As the doc states, you can browse to your search app and viewSource to see what components are there: https://localhost:8000/en-US/app/search/dashboard_live?showsource=true

Sean

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!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...