How to restrict access to an external plugin using privileges?

I have created a plugin as indicated here.

How can I restrict access to the plugin with privileges?

This means that only the superuser can view the plugin and that in the menu it is only visible by the superuser.

You will have to use the Kibana Role management for this. Roles are a collection of privileges that allow you to perform actions in Kibana and Elasticsearch. Users are not directly granted privileges, but are instead assigned one or more roles that describe the desired level of access. When you assign a user multiple roles, the user receives a union of the roles’ privileges. This means that you cannot reduce the privileges of a user by assigning them an additional role. You must instead remove or edit one of their existing roles.

: Kibana role management | Kibana Guide [8.3] | Elastic.

hope this helps

Hello rashmi.

thanks for answering.

but I need to apply role access to an external plugin

I am developing my external plugin. but I don't know how the roles to restrict access.

I try to use the features plugin, but I don't understand how to implement it.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.