Security

how to restrict user to view only a specific dashboard?

manjuase
Explorer

Hi,

I have 2 dashboards: dashboard1 & dashboard 2 and 2 users: user1 & user2 and both dashboards are in one app APP.

Now, i would like to restrict user1 to access only dashboard1 and user2 to access only dashboard2.

So, i have created roles for both users and given required access respectively however when user2 tries to load APP getting "the page not found error" because dashaboard1 is default view in my app APP.

Please suggest. Thanks in advance!

Tags (1)
0 Karma

zshainsky
Splunk Employee
Splunk Employee

It seems like you are doing the first step correctly of assigning roles to users and setting the proper read permissions of the dashboard to that user role! Now, it sounds like the problem is that you need to route users to the proper dashboard.

One way you could do this is to have multiple apps for each of the two users that need to see a specific dashboard when they login. The way I think makes most sense is a work around using the JS Webframework which could be as follows:

  1. Create a dashboard3 that is the default for the app. This might have reports to load or might be blank but will act more as a landing page to redirect users to the correct dashboard
  2. Using JS referenced in dashboard3 you can get all relevant information about user like user role with this code (http://dev.splunk.com/view/SP-CAAAEJ8#listuser)
  3. Then, in your JS code, have the user routed through an http redirect to the proper dashboard

I am referencing another answer here (https://answers.splunk.com/answers/126873/how-to-show-different-views-by-the-type-of-user.html) for some of these ideas and links.

somesoni2
Revered Legend

I don't think you can have a user specific app's default view. One workaround that you can try is to have the "search" as the default view for the app and have both the dashboard link available in the menu bar. Since the permission is restricted, user1 will see link for dashboard1 only, and same goes for user2.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...