# Xpack users migration

**URL:** <https://discuss.elastic.co/t/xpack-users-migration/278138>\
**Category:** Elasticsearch\
**Created:** [July 8, 2021, 6:14am UTC](https://discuss.elastic.co/t/xpack-users-migration/278138 "2021-07-08T06:14:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![McElroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mcelroy/32/24639_2.png) [@McElroy](https://discuss.elastic.co/u/McElroy)\
**Post date:** [July 8, 2021, 6:14am UTC](https://discuss.elastic.co/t/xpack-users-migration/278138/1 "2021-07-08T06:14:17Z")

</div>

Hi,  
we are currently migrating one of our clusters to new machines. We need to migrate the users and roles from xpack too. What would be the best option here? Create a snapshot and import it in the new cluster or reindex to the new server?

---

<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 5, 2021, 6:15am UTC](https://discuss.elastic.co/t/xpack-users-migration/278138/2 "2021-08-05T06:15:07Z")

</div>

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