Allow user to "Save Search", more information

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.14.0

Describe the issue:
I’m looking to allow users to save their searches but nut sure on how to go about it.
I Guess I’m really looking for more information on how to do this.

Analyzing data (saving-a-search) - OpenSearch Documentation

Do we by allowing indices:data/write/index to the index open up for full write-access to saved_objects and all settings in there?
This feels a bit risky.

Would it be better to have admin-user create all the “Saved Searches” and provision them over the api?

Best Regards
Sebastian Thörn

Configuration:

Relevant Logs or Screenshots:

POST https://opensearch.dev.corp.com/api/saved_objects/search?overwrite=true

security_exception: [security_exception] Reason: no permissions for [indices:data/write/index] and User [name=sebtho01, backend_roles=[D-OpenSearch_Zp-PlatformRole, R-IT-Plattform, D-OpenSearch_Zp-Developer], requestedTenant=null]

Hi @sebastian-thorn ,

Have you tried using kibana_user role?

Hi @Eugene7

I can only find that role in this old version of that doc:
Users and roles - OpenSearch documentation (1.0)

Are you referring to opensearch_dashboards_user I found that in a newer version:
Defining users and roles - OpenSearch Documentation (2.14)

I will try opensearch_dashboards_user and get back, thanks for the help.

Br Sebastian Thörn

Hi,

this worked fine, thank you for the fast response!

Br Sebastian Thörn

1 Like