# How can you get tenant name from within a rule?

**URL:** <https://community.auth0.com/t/how-can-you-get-tenant-name-from-within-a-rule/8310>\
**Category:** Get Help\
**Tags:** tenant, rules\
**Created:** [September 27, 2017, 4:04am UTC](https://community.auth0.com/t/how-can-you-get-tenant-name-from-within-a-rule/8310 "2017-09-27T04:04:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brad2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brad2/32/8925_2.png) [@brad2](https://community.auth0.com/u/brad2)\
**Post date:** [September 27, 2017, 4:04am UTC](https://community.auth0.com/t/how-can-you-get-tenant-name-from-within-a-rule/8310/1 "2017-09-27T04:04:43Z")

</div>

Is there a variable that lets you get the current tenant name from within a rule. Doesn’t seem to be on the context argument.

---

<div class="post-metadata">

**Author:** ![brad2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brad2/32/8925_2.png) [@brad2](https://community.auth0.com/u/brad2)\
**Post date:** [September 27, 2017, 5:15am UTC](https://community.auth0.com/t/how-can-you-get-tenant-name-from-within-a-rule/8310/2 "2017-09-27T05:15:35Z")

</div>

ok - hostname is close enough for what I need…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/how-can-you-get-tenant-name-from-within-a-rule/8310/3 "2018-03-02T05:56:42Z")

</div>


