# Get tenant for server side

**URL:** <https://forum.radzen.com/t/get-tenant-for-server-side/9317>\
**Category:** Blazor WebAssembly\
**Created:** [October 29, 2021, 9:24pm UTC](https://forum.radzen.com/t/get-tenant-for-server-side/9317 "2021-10-29T21:24:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon](https://forum.radzen.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@simon](https://forum.radzen.com/u/simon)\
**Post date:** [October 29, 2021, 9:24pm UTC](https://forum.radzen.com/t/get-tenant-for-server-side/9317/1 "2021-10-29T21:24:16Z")

</div>

Hi,  
I am going in circles at the moment trying to find a way to securely apply multitenancy. How would I stop an authenticated user from accessing another tenant? Passing the tenant id in the api url or relying on the http base are not secure enough. I think this should live in the context but not sure how. I know that I am missing a trick somewhere, any ideas?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [October 31, 2021, 10:13am UTC](https://forum.radzen.com/t/get-tenant-for-server-side/9317/2 "2021-10-31T10:13:35Z")

</div>

The tenant is usually retrieved from the host since you should host the application separately for every tenant. We are not aware of any other approach.
