# Migrating created users from ELK cluster to another

**URL:** <https://discuss.elastic.co/t/migrating-created-users-from-elk-cluster-to-another/194228>\
**Category:** Kibana\
**Created:** [August 7, 2019, 11:42am UTC](https://discuss.elastic.co/t/migrating-created-users-from-elk-cluster-to-another/194228 "2019-08-07T11:42:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruthvicsd](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ruthvicsd](https://discuss.elastic.co/u/ruthvicsd)\
**Post date:** [August 7, 2019, 11:42am UTC](https://discuss.elastic.co/t/migrating-created-users-from-elk-cluster-to-another/194228/1 "2019-08-07T11:42:52Z")

</div>

Hi, Where does kibana save all the created users? Will it be in a file in local system or in elasticsearch index? Can we migrate the users created in primary cluster to secondary cluster without recreating them in the secondary cluster? Please suggest.

Thanks and Regards,  
Ruthvic

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [August 8, 2019, 1:33pm UTC](https://discuss.elastic.co/t/migrating-created-users-from-elk-cluster-to-another/194228/2 "2019-08-08T13:33:13Z")

</div>

Hi @ruthvicsd,

thanks for your question.  
If you create a user in Kibana, they are created as an Elasticsearch user. How these are persisted depends on your Elasticsearch settings, the default is the [`native` realm](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-native-realm.html).

There is no built-in way to transfer the users, the easiest way is to use the APIs [https://www.elastic.co/guide/en/x-pack/current/security-api-users.html](https://www.elastic.co/guide/en/x-pack/current/security-api-users.html)  
[https://www.elastic.co/guide/en/x-pack/current/security-api-roles.html](https://www.elastic.co/guide/en/x-pack/current/security-api-roles.html) as explained in these slightly outdated answer [Export/Import users/roles from Native User Authentication?](https://discuss.elastic.co/t/export-import-users-roles-from-native-user-authentication/91218)

---

<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:** [September 5, 2019, 1:33pm UTC](https://discuss.elastic.co/t/migrating-created-users-from-elk-cluster-to-another/194228/3 "2019-09-05T13:33:17Z")

</div>

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