# Kibana custom plugin

**URL:** <https://discuss.elastic.co/t/kibana-custom-plugin/332603>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [May 5, 2023, 12:00am UTC](https://discuss.elastic.co/t/kibana-custom-plugin/332603 "2023-05-05T00:00:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigo\_Ceron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_ceron/32/120674_2.png) [@rodrigo\_Ceron](https://discuss.elastic.co/u/rodrigo_Ceron)\
**Post date:** [May 5, 2023, 12:00am UTC](https://discuss.elastic.co/t/kibana-custom-plugin/332603/1 "2023-05-05T00:00:34Z")

</div>

Hi everyone,

I'm developing a customplugin however I have a question. Is it possible to give privileges to a user so they can access only this plugin?

---

<div class="post-metadata">

**Author:** ![JLeysens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jleysens/32/67404_2.png) [@JLeysens](https://discuss.elastic.co/u/JLeysens)\
**Post date:** [May 9, 2023, 3:48pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin/332603/2 "2023-05-09T15:48:04Z")

</div>

It's a little convoluted. This is possible using some of the features provided by security. Specifically "Roles". You can create a new privilege that can be configured for a role (in a space).

But perhaps `dev_tools` plugin be of some guidance. This will add a new "feature" that can be granted access to via Stack Management \> Roles \> Create. Then see `src/plugins/dev_tools/public/plugin.ts` for how the capability is used.

> <https://github.com/elastic/kibana/blob/d15738989a6544c9b939cde5afc3533c9850d7d4/x-pack/plugins/features/server/oss_features.ts#L311>

---

<div class="post-metadata">

**Author:** ![rodrigo\_Ceron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_ceron/32/120674_2.png) [@rodrigo\_Ceron](https://discuss.elastic.co/u/rodrigo_Ceron)\
**Post date:** [May 9, 2023, 10:35pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin/332603/3 "2023-05-09T22:35:01Z")

</div>

Thank you, it's working

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 6, 2023, 10:35pm UTC](https://discuss.elastic.co/t/kibana-custom-plugin/332603/4 "2023-06-06T22:35:14Z")

</div>

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