Hi Splunkers.
Is there an easy way implement a dynamic navigation menu for an application based on permissions?
To elaborate, I am trying to set up a single landing page for all users of a particular application.
The application monitors multiple environments using different indexes. Say "Test" and "Live".
On the app's nav menu I want to have an option for each of the environments (with submenus relevant to each option).
I want the nav menu to only display menu options for areas the user has permissions to access.
i.e. If the user does NOT have access to Live, then (Live would not appear on the nav menu at all).
For example, the nav menu for a user with access to "Test" and "Live" might display as:
**About | Test | Live | Reports | Notifications **
As this user has access to both Live and Test then they would both appear on the menu.
Another user with access to just the Test environment might see:
**About | Test | Reports | Notifications**
(Not that the "Live" option does not appear)
Finally, an admin user might see:
**About | Admin Tools | Search | Test | Live | Reports | Notifications**
.. with extra options displayed above and beyond those show to regular users.
The nav menu would be dynamic in that it would only display items available to that user.
I realize I could have different nav bars for different users but would mean having to maintain nav bars for every combination of user (a maintenance nightmare) so I'm looking for a solution that generate the nav bar dynamically.
(A search doesn't find anything relevant to what I am trying to achieve)
Thanks.
↧
Is there an easy way to implement a dynamic navigation menu for an application based on permissions?
↧