When trying to save a view both on Inventory UI and Metrics UI using a user with limited privileges, the error below happens.
Another error happens happens when clicking the star icon
Steps to reproduce
Statefull
Create a user with elasticsearch index privileges:
indices: metrics-, metricbeat-
privileges: 'read', 'view_index_metadata'
and kibana privileges: Infrastructure
Navigate to Hosts View, click on a host to navigate to the Asset Details page
Click on Anomaly tab
Serverless
Login with a user with Viewer role
Possible solution
We could hide Update and Save items from the popover as well as any actions in Manage saved View if capabilities.savedObjectsManagement.edit is false . Manage saved View it might also show a delete icon which should be hidden if capabilities.savedObjectsManagement.delete is false
Summary
When trying to save a view both on Inventory UI and Metrics UI using a user with limited privileges, the error below happens.
Another error happens happens when clicking the star icon
Steps to reproduce
Statefull
Serverless
Possible solution
We could hide Update and Save items from the popover as well as any actions in Manage saved View if
capabilities.savedObjectsManagement.edit
isfalse
. Manage saved View it might also show a delete icon which should be hidden ifcapabilities.savedObjectsManagement.delete
isfalse