# How to get Tenant Token for SaaS environment

**URL:** <https://community.dynatrace.com/t/how-to-get-tenant-token-for-saas-environment/21871>\
**Category:** Open Q&A\
**Tags:** dynatrace-saas\
**Created:** [September 10, 2019, 9:30am UTC](https://community.dynatrace.com/t/how-to-get-tenant-token-for-saas-environment/21871 "2019-09-10T09:30:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [September 10, 2019, 9:30am UTC](https://community.dynatrace.com/t/how-to-get-tenant-token-for-saas-environment/21871/1 "2019-09-10T09:30:27Z")

</div>

Hello Folks,

We want to automate OneAgent installation and need to run a msi installer via policy. (as per the [document](https://www.dynatrace.com/support/help/technology-support/operating-systems/windows/installation/customize-oneagent-installation-on-windows/))

But struggling to get TENANT\_TOKEN for my dynatrace environment.

Found below link but it talks about environment ID, tenant ID etc etc.

[Link](https://www.dynatrace.com/support/help/reference/dynatrace-concepts/why-do-i-need-an-environment-id/)

Where do I get the TENANT\_TOKEN. Can somebody please help me.

Thanks

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [September 10, 2019, 9:42am UTC](https://community.dynatrace.com/t/how-to-get-tenant-token-for-saas-environment/21871/2 "2019-09-10T09:42:42Z")

</div>

Here you have detail about how to get tenant\_token:

[Where can I find the tenant token?](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-activegate/configuration/configure-an-environment-activegate-for-multi-environment-support/#expand-127where-can-i-find-the-tenant-token)

Sebastian

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [September 10, 2019, 1:37pm UTC](https://community.dynatrace.com/t/how-to-get-tenant-token-for-saas-environment/21871/3 "2019-09-10T13:37:49Z")

</div>

Thanks Sebastian for your prompt response.
