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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...