Select theme:

Material 3

Multi-tenancy | Blazor (Blazor)link

When security is enabled Radzen offers multi-tenancy support (not available in community version). Multi-tenancy allows single instance of Radzen application to serve multiple tenants.

image

Create tenantslink

When multi-tenancy is enabled, Radzen will seed tenantsadmin user (tenantsadmin/tenantsadmin login credentials) as part of security tables migrations (server/Data/Migrations folder) that can be used to add tenants runtime during development and when the application is deployed:

image

We strongly advise you to change this user password before deploying the application. You can do that from the profile page:

image

When you create tenants you can choose which tenant is active from the DataGrid "Switch tenant" button:

image

You can add, update and delete tenants.

Both tenant Name and Hosts are mandatory:

image

Hosts can be single or comma separated hosts where the application for this tenant will be deployed:

image

Once you have active tenant you can add roles and users for this tenant:

image

When role/user is created the active tenant is assigned automatically as tenant for the newly created role/user. Now when login with a user in development the application will use user tenant as active tenant.

image

Users sign-up is available for deployed applications only where the new user tenant will be retrieved from the application host.

image

Deploy to IISlink

1. Create new radzen-rocks.com web site in your IIS with following bindings.

image image

2. Modify your hosts (%WINDIR%\system32\drivers\etc\hosts) file to simulate hypothetical domains locally.

...
127.0.0.1       radzen-rocks.com
127.0.0.1       tenant1.radzen-rocks.com
127.0.0.1       tenant2.radzen-rocks.com
...

image

3. Deploy the application from Radzen and browse tenants.

image image image

In this article —
© 2016-2025 Radzen Ltd. All Rights Reserved.
Designed and developed with ❤️ in Radzen Blazor Studio.

Select theme:

Material 3