Dashboards & Visualizations

How to give users read-only access to a dashboard that has dynamic drop-downs with higher permissions?

bruceclarke
Contributor

Hi all,

I'm trying to an app that has several dynamic dashboards. I want to give users read-only access to these dashboard. The problem I'm running into is that the dashboard is running with higher permissions than I want to give the user. In particular, I have dropdowns on each dashboard that use DBConnect to poll which options a user have access to.

Is there a way that I can give a user read-only access to a dashboard while still giving the dynamic dropdowns the permissions they need?

Hopefully this makes sense, but I'm happy to provide more details if need be. Thanks!

1 Solution

bruceclarke
Contributor

I've decided the best way to do this is to revoke their access to Splunk's search app and give them read-only access to other appropriate apps. This means they can't edit the dashboard and they only get to interact with the dropdowns on the front end.

View solution in original post

bruceclarke
Contributor

I've decided the best way to do this is to revoke their access to Splunk's search app and give them read-only access to other appropriate apps. This means they can't edit the dashboard and they only get to interact with the dropdowns on the front end.

jcoates_splunk
Splunk Employee
Splunk Employee

Can you index the data so that the user is accessing an index instead of the raw command?

0 Karma

bruceclarke
Contributor

Unfortunately no. The query I want to run is below:

| rest /services/authentication/current-context/context
| eval user_Name=username
| map search="dbquery myDB limit=1000 \"SELECT email, databaseName, serverName FROM userAccessTable WHERE email LIKE '$username$@%'\""

So, basically, get the list of databases/servers that a user has access to.

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...