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!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...