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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...