Finally, from “Saved Objects” I was still able to completely delete specific ‘data view’
Looks like it’s another action and for saved object it should be defined like
actions:
- "indices:data/write/delete"
- "indices:data/write/bulk"
You can check the action for a specific request in the logs
FORBIDDEN by { name: 'DENY_KIBANA_SPACE_DELETE', policy: FORBID, rules: [auth_key, actions, indices] } req={ ID:5ee05800-1b6b-4d53-9888-be9713eb6c14-1680950695#27396, TYP:BulkRequest, CGR:<N/A>, USR:user2 (attempted), BRS:true, ACT:indices:data/write/bulk, OA:127.0.0.1/32, XFF:localhost:5601, DA:127.0.0.1/32, IDX:.kibana_analytics_9.5.2, MET:POST, PTH:/_bulk, CNT:<OMITTED, LENGTH=109.0 B> , HDR:x-forwarded-for=localhost:5601, Host=localhost:9200, x-ror-kibana-request-path=/s/default/internal/kibana/management/saved_objects/_bulk_delete, keep-alive=timeout=10, max=1000, user-agent=Kibana/9.5.2, Content-Length=109, cookie=KBN_LOCALE=en; rorCookie_saml_kc=s%3AVY7_gyuseoSwkzLwIFeEkFdYid5Jgg9l.vxT4jHZv6%2BQ6ORPCw1iH0Fb03VB5wxBlrdkHzlvWHLk; __Host-ror.x-csrf-token-MC4wLjAuMDo1NjAx-session_id=252e5d71b3f2340ec71225b940168493; __Host-ror.x-csrf-token-MC4wLjAuMDo1NjAx=6df0a37363939fbe3ac2dadc2affb60dde7b7c0a07ef9341324374e74e7d9214.e1484d332c557f94bc5de6c437da70f65893c0dc543144d7f9599fbb0094e4fcc77fa7f1c8ba7c9ac15c2b74aef7f3788e5ed6444e771105cf18a813a359b70c, accept=application/vnd.elasticsearch+json; compatible-with=9, x-ror-kibana-index=.kibana, Authorization=<OMITTED>, connection=keep-alive, x-ror-correlation-id=5ee05800-1b6b-4d53-9888-be9713eb6c14, x-opaque-id=unknownId, x-ror-tenancy=U2FsdGVkX1+awIUTl6JZH4MHr5dmmJZdnhZdU+Gi8eU3Mmf3Qctyb6hgZPiNRoa+, x-elastic-product-origin=kibana, content-type=application/vnd.elasticsearch+x-ndjson; compatible-with=9, x-ror-kibana-request-method=post, x-elastic-client-meta=es=9.4.2,js=24.19.0,t=9.3.6,hc=24.19.0, Accept-Charset=utf-8, HIS:[KIBANA_SERVER: NOT_MATCHED (AUTH_FAIL (Username mismatch)) -> RULES:[auth_key->false]], [JWT_AUTH: NOT_MATCHED (AUTH_FAIL (JWT header 'Authorization' has an invalid or unrecognized token format)) -> RULES:[jwt_auth->false]], [DENY_KIBANA_SPACE_DELETE: MATCHED -> RULES:[auth_key->true, actions->true, indices->true] RESOLVED:[user=user2;indices=.kibana_analytics_9.5.2]], }
The action for the specific request is printed in the ACT:indices:data/write/bulk part