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!

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 ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...