Getting Data In

How do you edit user role capabilities using REST API?

pgelnar_usy
Engager

I am creating indexes, inputs and roles based on k8s namespace. I was granting user role capabilities, but now, I need to edit capabilities (add or remove some, like change_own_pasword). I was trying to find a solution to do it using the REST API. Is that even possible, please?

#create role base authorization
*echo curl -k -u $user:$password https://localhost:30189/services/authorization/roles/ -d name=${namespace} -d srchIndexesAllowed=${namespace} -X POST*

*echo curl -k -u $user:$password https://localhost:30189/services/authorization/roles/${namespace} -d defaultApp=splunk_monitoring_console -X POST*
Tags (2)
0 Karma

pgelnar_usy
Engager

Thank you for you kick @somesoni2 i was still missing one point. I got it now!

curl -k -u $user:$password https://localhost:30189/services/authorization/roles/${namespace} -d capabilities=search -d capabilities=accelerate_search -X POST

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...