# Plugin is invisible after added security dependency in kibana.json in 7.9.3

**URL:** <https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [November 30, 2020, 3:49am UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017 "2020-11-30T03:49:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrt.krishna](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@nrt.krishna](https://discuss.elastic.co/u/nrt.krishna)\
**Post date:** [November 30, 2020, 3:49am UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017/1 "2020-11-30T03:49:44Z")

</div>

Hi All,

I am trying to get current username in my custom plugin which is developed based on 7.9.3. I followed helpful instructions provided [here](https://discuss.elastic.co/t/unable-to-get-the-username-and-roles-in-kibana-7-9-through-the-legacy-and-new-platforms/249296). But when I added "security" as required dependencies in kibana.json my plugin is not showing up. Could somebody help me if there are any extra steps that I need to do?

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [November 30, 2020, 4:05pm UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017/2 "2020-11-30T16:05:14Z")

</div>

Hi @nrt.krishna.  
Do you see your plugin in the kibana server log when you start kibana? i.e, you should see an entry for your plugin in this list when security is enabled/disabled?:

```auto
[info][plugins-system] Starting [101] plugins: [taskManager,licensing,globalSearch,<your plugin>,globalS...]

```

It would help if you could also show your `kibana.json` file and a snippet on how/where you use it in your plugin's setup and start contract.

---

<div class="post-metadata">

**Author:** ![nrt.krishna](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@nrt.krishna](https://discuss.elastic.co/u/nrt.krishna)\
**Post date:** [November 30, 2020, 5:39pm UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017/3 "2020-11-30T17:39:52Z")

</div>

Hi @cheiligers. Thanks for the reply.  
I can see my plugin when I start kibana with out "security" dependency in kibana.json. But if I add "security" under required plugins section of kibana.json, I can't see it in logs. Here is my kibana.json

```auto
    {
      "id": "xyz",
      "version": "7.9.3",
      "server": true,
      "ui": true,
      "requiredPlugins": [
        "navigation",
        "data",
        "inspector",
        "kibanaLegacy",
        "kibanaUtils",
        "security"
      ],
      "optionalPlugins": []
    }

```

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [November 30, 2020, 5:46pm UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017/4 "2020-11-30T17:46:36Z")

</div>

@nrt.krishna "security" is not available in OSS. If you're using an `xpack` distribution, then `security` should be added to the `optionalPlugins` in your `kibana.json` file.

You'll also need to add the security plugin as a dependency to your `setup` and `start` contract.  
Can you paste your `setup` and `start` contracts for your plugin (server or client, depending on where you're trying to use the security API)?

---

<div class="post-metadata">

**Author:** ![nrt.krishna](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@nrt.krishna](https://discuss.elastic.co/u/nrt.krishna)\
**Post date:** [December 1, 2020, 9:35am UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017/5 "2020-12-01T09:35:13Z")

</div>

I am not using xpack. I am using opendistro.

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [December 1, 2020, 9:38am UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017/6 "2020-12-01T09:38:58Z")

</div>

> [@nrt.krishna](#):
>
> I am using opendistro.

If you are using opendistro you may try to get an answer on the offical opendistro forum [here](https://discuss.opendistrocommunity.dev/)

Best regards  
Wolfram

---

<div class="post-metadata">

**Author:** ![nrt.krishna](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@nrt.krishna](https://discuss.elastic.co/u/nrt.krishna)\
**Post date:** [December 1, 2020, 9:49am UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017/7 "2020-12-01T09:49:49Z")

</div>

Thank you for redirecting me to correct platform.

---

<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:** [December 29, 2020, 9:49am UTC](https://discuss.elastic.co/t/plugin-is-invisible-after-added-security-dependency-in-kibana-json-in-7-9-3/257017/8 "2020-12-29T09:49:53Z")

</div>

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