# Migrate .security index for migrating users?

**URL:** <https://discuss.elastic.co/t/migrate-security-index-for-migrating-users/333917>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security, user-experience\
**Created:** [May 20, 2023, 5:29pm UTC](https://discuss.elastic.co/t/migrate-security-index-for-migrating-users/333917 "2023-05-20T17:29:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![termcap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/termcap/32/91415_2.png) [@termcap](https://discuss.elastic.co/u/termcap)\
**Post date:** [May 20, 2023, 5:29pm UTC](https://discuss.elastic.co/t/migrate-security-index-for-migrating-users/333917/1 "2023-05-20T17:29:18Z")

</div>

Hi,

I have setup a new cluster 8.7 and I want to migrate users from my old cluster 7.x into this cluster so that I do not have to re-create the users and setup new passwords.

I did some looking around and it appears that if I migrate the .security index from my 7.x cluster into the new 8.7 cluster, the users and the roles should be migrated.

I have a few questions regarding this, if this is the correct method:

1. Does the .security index have inbuilt users like elastic, kibana etc ? If yes, will these users get over written in my new cluster ?
2. If I import or restore the .security index, will the old passwords work or will I have to reset the password for all users ?
3. Is there a guide to snapshotting and importing the .security index ?
4. What can go wrong ?

If snapshotting and restoring the .security index is not the answer, what is the correct way to migrate users along with passwords from one on-premise cluster to other ? Is this even possible ?

Thanks,  
Termcap

---

<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 17, 2023, 5:29pm UTC](https://discuss.elastic.co/t/migrate-security-index-for-migrating-users/333917/2 "2023-06-17T17:29:56Z")

</div>

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