# Whether users created in Kibana and x-pack are different?

**URL:** <https://discuss.elastic.co/t/whether-users-created-in-kibana-and-x-pack-are-different/85580>\
**Category:** Kibana\
**Created:** [May 12, 2017, 1:56pm UTC](https://discuss.elastic.co/t/whether-users-created-in-kibana-and-x-pack-are-different/85580 "2017-05-12T13:56:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijayramachandran](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vijayramachandran](https://discuss.elastic.co/u/vijayramachandran)\
**Post date:** [May 12, 2017, 1:56pm UTC](https://discuss.elastic.co/t/whether-users-created-in-kibana-and-x-pack-are-different/85580/1 "2017-05-12T13:56:15Z")

</div>

Hello there,

Can you update me whether the users created in x-pack using ./user is different from users created in Kibana UI is different?

And, how do I assign customized roles to the local users, which were created?

I have added this in elasticsearh.yml,

> ```
> xpack:
> security:
> authc:
> realms:
> file1:
> type: file
> order: 0
> 
> ```

For example, I have an user called test with the password test123, how do I set a customized role to run some indices?

P.S: I don't want this to be done via Kibana UI, but through configuration files. When I say customized roles, I don't want to be monitoring\_user, or kibana user.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [May 12, 2017, 2:09pm UTC](https://discuss.elastic.co/t/whether-users-created-in-kibana-and-x-pack-are-different/85580/2 "2017-05-12T14:09:46Z")

</div>

Users created by the ./user command are part of the `file` realm: [https://www.elastic.co/guide/en/x-pack/current/file-realm.html](https://www.elastic.co/guide/en/x-pack/current/file-realm.html)  
Which means these users are available only on that local node.

The users created from Kibana are part of the `native user` realm: [https://www.elastic.co/guide/en/x-pack/current/native-realm.html](https://www.elastic.co/guide/en/x-pack/current/native-realm.html)  
You can create them from the REST APIs or from Kibana directly.

As for managing user roles, you have all the information you need over here: [https://www.elastic.co/guide/en/x-pack/current/defining-roles.html](https://www.elastic.co/guide/en/x-pack/current/defining-roles.html) both for native and for file realm.

---

<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 9, 2017, 2:21pm UTC](https://discuss.elastic.co/t/whether-users-created-in-kibana-and-x-pack-are-different/85580/3 "2017-06-09T14:21:30Z")

</div>

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