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!

BORE at .conf25

Boss Of Regular Expression (BORE) was an interactive session run again this year at .conf25 by the brilliant ...

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...