Make custom plugin available based on role of user and in some namepsaces only


I am creating a custom externally distributable plugin
But I want the plugin to be installed in specific namespaces only and be available to users with specific roles only
How can I implement it?

I checked on Kibana browser, but there I could find restricting access to indices only, and nothing about custom plugins. I believe I'll have to make some changes when installing plugins or in the code for registering the plugin on to the side navigation bar.
Please guide me.

Thanks in advance

You can hook into permission management from your custom plugin and have it show up in the configuration form for privileges for roles. E.g. see how the infra plugin is doing it (to pick an arbitrary example):

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