I'm utilizing the multi-tenant feature in Radzen and I'm needing to associate a user to a specific tenant upon account creation. I've tried about all the ways I can think of, including using ${Global.Tenant}, however, that does not appear to be correct.
What I'm hoping to accomplish is to have a drop-down list with active tenants to choose from so that when I create the account(s) the user is associated with that tenant only.
Tenant is assigned automatically in CreateUser method of SecurityService:
This is not how multi-tenancy should work in my opinion. Only the tenants admin can view all tenants and switch active tenant while the rest users and roles should be assigned directly to active tenant.
I see what you’re saying. So, basically if I as a “ super admin” if you will, needs to create another user for TenantB I shouldn’t be able to do so from the “master” site but rather must have access to TenantB as another Admin in order to create a user?
That’s what I’m trying to do here. Is to be able to create users on behalf of a Tenant admin. This is why I asked about the drop down.
There is a tenant admin that can create tenants and switch the tenant in development mode. In production application is deployed per tenant and the current tenant is always known. Each tenant can have own admins that can create regular users and when the user is created the tenant is automatically assigned. More info can be found here:
More info about default security can be found here:
Sorry, I did not have my coffee yet. I just reread what you were stating. Thank you, sir, much appreciated as well.