# How do I access the tenant name in custom login HTML?

**URL:** <https://community.auth0.com/t/how-do-i-access-the-tenant-name-in-custom-login-html/47880>\
**Category:** Get Help\
**Created:** [August 12, 2020, 3:07pm UTC](https://community.auth0.com/t/how-do-i-access-the-tenant-name-in-custom-login-html/47880 "2020-08-12T15:07:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.gard](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.gard/32/13071_2.png) [@david.gard](https://community.auth0.com/u/david.gard)\
**Post date:** [August 12, 2020, 3:07pm UTC](https://community.auth0.com/t/how-do-i-access-the-tenant-name-in-custom-login-html/47880/1 "2020-08-12T15:07:06Z")

</div>

Hello,

Is there a way to access the Auth0 tenant name from within the custom login HTML?

I see that the is a `config` object, though it doesn’t appear to contain a property called either `tenant` or `tenantName`. Those were just guesses though, so perhaps it’s something else?

```
var config = JSON.parse(decodeURIComponent(escape(window.atob('@@config@@'))));

```

If not through the `config` object, is there another object that can be accessed which would contain the tenant name?

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 18, 2020, 4:03pm UTC](https://community.auth0.com/t/how-do-i-access-the-tenant-name-in-custom-login-html/47880/2 "2020-08-18T16:03:11Z")

</div>

From memory, I believe you should have that in `config.auth0Tenant`.

---

<div class="post-metadata">

**Author:** ![david.gard](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david.gard/32/13071_2.png) [@david.gard](https://community.auth0.com/u/david.gard)\
**Post date:** [August 19, 2020, 9:51am UTC](https://community.auth0.com/t/how-do-i-access-the-tenant-name-in-custom-login-html/47880/3 "2020-08-19T09:51:56Z")

</div>

Thanks for the reply, you are absolutely correct.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 19, 2020, 1:06pm UTC](https://community.auth0.com/t/how-do-i-access-the-tenant-name-in-custom-login-html/47880/4 "2020-08-19T13:06:00Z")

</div>

Woohooo! Glad you have it working!

---

<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:** [September 3, 2020, 1:06pm UTC](https://community.auth0.com/t/how-do-i-access-the-tenant-name-in-custom-login-html/47880/5 "2020-09-03T13:06:02Z")

</div>

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