# What is the best practice for moving OneAgent servers from one tenant to another?

**URL:** <https://community.dynatrace.com/t/what-is-the-best-practice-for-moving-oneagent-servers-from-one-tenant-to-another/10472>\
**Category:** Open Q&A\
**Tags:** oneagent\
**Created:** [January 18, 2018, 5:27pm UTC](https://community.dynatrace.com/t/what-is-the-best-practice-for-moving-oneagent-servers-from-one-tenant-to-another/10472 "2018-01-18T17:27:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonya\_patel](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sonya\_patel](https://community.dynatrace.com/u/sonya_patel)\
**Post date:** [January 18, 2018, 5:27pm UTC](https://community.dynatrace.com/t/what-is-the-best-practice-for-moving-oneagent-servers-from-one-tenant-to-another/10472/1 "2018-01-18T17:27:46Z")

</div>

We would like to move 15 OA servers to another tenant due to access limitations (view confidental data) which are needed.

Tags, mark key requests, etc are already configured in the current environment but how can we migrate it to another tenant or even audit the current tenant to confirm the settings have been migrated over manually.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 18, 2018, 9:17pm UTC](https://community.dynatrace.com/t/what-is-the-best-practice-for-moving-oneagent-servers-from-one-tenant-to-another/10472/2 "2018-01-18T21:17:16Z")

</div>

~~Oneagents cannot be migrated between environments. Supported method is to reinstall them. Since they get configuration from the tenant, it’s just a matter of seconds to reinstall an agent.~~

~~Currently, I’m not aware of any supported method of migrating any configurations between tenants (environments). I can only think of non-supported ones 🙂~~

~~Regarding confidential data, this is also a role (permission) that can be granted or revoked for a user. Maybe just playing with roles would help in your case. But roles are global, this effectively means you can’t have permission to access confidential data only on a subset of hosts/services.~~

This answer is no longer since introduction of oneagentctl features to support changing tenant, token and communication endpoints.

---

<div class="post-metadata">

**Author:** ![sonya\_patel](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sonya\_patel](https://community.dynatrace.com/u/sonya_patel)\
**Post date:** [January 19, 2018, 1:11pm UTC](https://community.dynatrace.com/t/what-is-the-best-practice-for-moving-oneagent-servers-from-one-tenant-to-another/10472/3 "2018-01-19T13:11:50Z")

</div>

Thank you [@Julius L.](https://answers.dynatrace.com/users/16467/view.html)

Auditing would be an amazing feature to have.

---

<div class="post-metadata">

**Author:** ![Joe\_Hoffman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joe_hoffman/32/30752_2.png) [@Joe\_Hoffman](https://community.dynatrace.com/u/Joe_Hoffman)\
**Post date:** [March 14, 2018, 3:38pm UTC](https://community.dynatrace.com/t/what-is-the-best-practice-for-moving-oneagent-servers-from-one-tenant-to-another/10472/4 "2018-03-14T15:38:34Z")

</div>

Sonja, This forum is the Q/A forum. If you want to suggest a product feature, it’s better to post it to the “Product Ideas” forum where it can be tracked and voted up, etc. Also regarding your Auditing suggestion, it would be helpful to better understand the use case around auditing and why you think it would be helpful, beneficial. But again, please post all this in the Product Ideas forum.

---

<div class="post-metadata">

**Author:** ![mhlamine](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mhlamine/32/4415_2.png) [@mhlamine](https://community.dynatrace.com/u/mhlamine)\
**Post date:** [April 15, 2022, 8:36am UTC](https://community.dynatrace.com/t/what-is-the-best-practice-for-moving-oneagent-servers-from-one-tenant-to-another/10472/5 "2022-04-15T08:36:36Z")

</div>

Hi,

Check this link i think we have the possibility to change tenant and server via oneagentctl :

> **[OneAgent configuration via command-line interface](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/oneagent-configuration-via-command-line-interface)**
>
> Learn how to perform some OneAgent configuration tasks without the need to reinstall OneAgent.
