Alerting

I need to create a dashboard and alert for whom has candelete rights, any idea how?

daniel333
Builder

All,

I need to create a dashboard and alert clearly saying who has "candelete" rights assigned to them and an alert to go with it. ANy idea how I can do that?

0 Karma

solarboyz1
Builder

I believe, you need to look for any roles with the capability delete_by_keyword, which the role can_delete has by default, but can be added to any role.

The following search will show any role with that capability:

| rest /servicesNS/nobody/system/admin/roles splunk_server=local
| rename title as roles
| eval caps=mvjoin(capabilities, " ")
| eval caps=mvjoin(imported_capabilities, " ")
| table roles caps icaps 
| stats values(caps) as caps, values(icaps) as icaps by roles |  search caps=*delete_by_keyword*
0 Karma

niketn
Legend

@daniel33, can you try the following authentication/users REST API and test?

| rest splunk_server=local /services/authentication/users
| table title roles
| search roles="can_delete"
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...