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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...