I'm attempting to get the current logged in user's email address from the Javascript SDK to pass to a js variable. I can get the current logged in Username, however the configKey values don't seem to exist in this docs article for getConfigValue, so I'm not sure what value to use for email address
https://docs.splunk.com/Documentation/Splunk/6.6.5/ModuleRef/Splunk.util#Parameters_8
Does anybody have the configKey value for the email address for the user in the JavaScript SDK? Or even an explanation for all of the options for configKey under getConfigValue?
Here's the code I'm trying:
require(["underscore","jquery","splunkjs/mvc","splunkjs/mvc/utils","splunkjs/mvc/simplexml/ready!"],
function(_,$,mvc,utils) {
var username = Splunk.util.getConfigValue("USERNAME").toLowerCase()
var email = Splunk.util.getConfigValue("email")
});
... View more