Security

How to find user roles that have access to serachindexallowed * or _*

sajeshpp
Path Finder

I need to find the user roles which has searchindexallowed = " * or _* "
The below command list all the roles with searchindexallowed details, but how do I get only roles which has permission to all indexes.
| rest /services/admin/roles | table title, srchIndexesAllowed | rename title as role.

Also, is there any way to find this with btool command ?

0 Karma

hardikJsheth
Motivator

You have the correct query, just add search filter as follows:

| rest /services/admin/roles | search srchIndexesAllowed=* OR srchIndexesAllowed=_* |table title, srchIndexesAllowed | rename title as role
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...