Dashboards & Visualizations

Limited Dashboard Access

whitecat001
Explorer

Hello,

How do i provide access to a limited email address on a dashboard through the backend 

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

What problem are you trying to solve?

---
If this reply helps you, Karma would be appreciated.
0 Karma

whitecat001
Explorer

Am trying to provide limited access to a dashboard and am trying to do that through the backend 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Splunk does not limit access by email address - it uses role-based access controls (RBAC).  You would need to create a role and make that role the only one that can access the dashboard in question.  Then create a Splunk account with the subject email address and assign that account to the new role.

Another option is to make the dashboard private to the user with the subject email address.

All of that is easiest to do using the GUI.  How to do it "through the backend" depends on your environment (Splunk Cloud, standalone, SHC, etc.).  It also depends on what you mean by "backend" - REST API, config files, or CLI commands.

---
If this reply helps you, Karma would be appreciated.
0 Karma

whitecat001
Explorer

What i mean by backend is through the CLI

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I'm not sure everything needed can be done from the CLI, but let's try.

Let's take the easier option of making the dashboard private to the user with the subject email address.  I assume this is not a search head cluster.

1) Create the user.

splunk add user foo@bar.com -password changeme -role User

2) Locate the dashboard

find /opt/splunk/etc/apps -name <<dashboard>>.xml

This will return something like

/opt/splunk/etc/apps/<<app name>>/local/data/ui/views/mydashboard.xml

3) Create the user's private app directory.

mkdir -p /opt/splunk/etc/users/<<app name>>/local/data/ui/views

4) Move the dashboard to the private directory.

mv /opt/splunk/etc/apps/<<app name>>/local/data/ui/views/mydashboard.xml /opt/splunk/etc/user/<<app name>>/local/data/ui/views/mydashboard.xml 

5) You may need to restart Splunk.

sudo systemctl splunk restart

 

---
If this reply helps you, Karma would be appreciated.

whitecat001
Explorer

Thank you for your response. I will check it out 

0 Karma
Get Updates on the Splunk Community!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...