Dashboards & Visualizations

splunk mvc sharedmodels documentation or other best practices

jnielson
New Member

Hey all, I seem to have ran into a snag when it comes to a specific feature I am trying to implement.

My team wants to implement a feature with the input dropdowns on the webpage where the starting value would be set to the realname of the account currently logged in. It is important to note we are building an HTML dashboard, and we have recently transitioned from splunk enterprise to cloud.

So far I was able to retrieve account information using splunk/mvc/sharedmodels and the following code:

 

var temp;
temp = SharedModels.get("user").entry; 
console.log(temp);

 

I know how to get the username, realname, email, etc. What I have an issue is there seems to be no documentation about this library anywhere, but maybe I am overlooking it?

Most questions I have found where using this has been the answer were posted in 2013. Is there a better library I should be using that fits Splunk best practices in 2020? 

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...