Splunk Dev

Why is "[SPLUNKD] Action Forbidden" on fetching Splunk app's configuration?

domaquino
Loves-to-Learn Lots

I'am trying to fetch the app's configuration using:

const appNamespace = { 

owner: "admin", 

app: appName, 

sharing: "app" 

};

const http = new splunkjs.SplunkWebHttp();
console.log(http);
const service = new splunkjs.Service(http, appNamespace,);
console.log(service);
stage = 'Retrieving configurations SDK collection';
const configCollection = service.configurations(appNamespace);
console.log(configCollection)
await configCollection.fetch()      // Adding this line is what's causing the error.

But I'm getting an error of "[SPLUNKD] Action Forbidden" when I look at the browser's console. The app's read permission is set to "Everyone".

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

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...