# Roles from roles.yml are not visible in Kibana

**URL:** <https://discuss.elastic.co/t/roles-from-roles-yml-are-not-visible-in-kibana/188970>\
**Category:** Kibana\
**Created:** [July 4, 2019, 8:23pm UTC](https://discuss.elastic.co/t/roles-from-roles-yml-are-not-visible-in-kibana/188970 "2019-07-04T20:23:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)\
**Post date:** [July 4, 2019, 8:23pm UTC](https://discuss.elastic.co/t/roles-from-roles-yml-are-not-visible-in-kibana/188970/1 "2019-07-04T20:23:52Z")

</div>

When I use `GET /_security/role/` in Dev tools, I can't see the roles that are defined in `roles.yml`. How can I see those roles in Kibana ?

---

<div class="post-metadata">

**Author:** ![Juanma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juanma/32/49076_2.png) [@Juanma](https://discuss.elastic.co/u/Juanma)\
**Post date:** [July 4, 2019, 8:58pm UTC](https://discuss.elastic.co/t/roles-from-roles-yml-are-not-visible-in-kibana/188970/2 "2019-07-04T20:58:22Z")

</div>

Hello

Unfortunately I think you only can see the native realm with Kibana.

Native realm documentation: [https://www.elastic.co/guide/en/elastic-stack-overview/7.2/realms.html](https://www.elastic.co/guide/en/elastic-stack-overview/7.2/realms.html)

File based realm documentation: [https://www.elastic.co/guide/en/elastic-stack-overview/7.2/file-realm.html](https://www.elastic.co/guide/en/elastic-stack-overview/7.2/file-realm.html)

Realm list documentation: [https://www.elastic.co/guide/en/elastic-stack-overview/7.2/realms.html](https://www.elastic.co/guide/en/elastic-stack-overview/7.2/realms.html)

I hope this helps

---

<div class="post-metadata">

**Author:** ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)\
**Post date:** [July 5, 2019, 3:20pm UTC](https://discuss.elastic.co/t/roles-from-roles-yml-are-not-visible-in-kibana/188970/3 "2019-07-05T15:20:56Z")

</div>

> [@Juanma](#):
>
> Unfortunately I think you only can see the native realm with Kibana.

1. Since you said "unfortunately", is it safe to assume that this is not by design ?
2. Is there any way of verifying the existence of a role from the file based realm?

---

<div class="post-metadata">

**Author:** ![Juanma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juanma/32/49076_2.png) [@Juanma](https://discuss.elastic.co/u/Juanma)\
**Post date:** [July 5, 2019, 9:29pm UTC](https://discuss.elastic.co/t/roles-from-roles-yml-are-not-visible-in-kibana/188970/4 "2019-07-05T21:29:40Z")

</div>

Hello

As you can read at [https://www.elastic.co/guide/en/elastic-stack-overview/7.2/file-realm.html](https://www.elastic.co/guide/en/elastic-stack-overview/7.2/file-realm.html):

> The `file` realm is primarily supported to serve as a fallback/recovery realm. It is mostly useful in situations where all users locked themselves out of the system (no one remembers their username/password). In this type of scenarios, the `file` realm is your only way out - you can define a new `admin` user in the `file` realm and use it to log in and reset the credentials of all other users.

And in the following link you can see that the administrator must ensure the propagation of the roles and users because elastic have no way to check it.

In order to check the roles you should check the files on all the nodes.

When I was using this realm as main realm back in elasticsearch 2.2 I faced some issues for not propagating correctly the roles.

---

<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:** [August 2, 2019, 9:29pm UTC](https://discuss.elastic.co/t/roles-from-roles-yml-are-not-visible-in-kibana/188970/5 "2019-08-02T21:29:48Z")

</div>

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