Base solution for your next web application
Open Closed

Copying tenant settings to new #7057


User avatar
0
kworkme created

Hi,

Is there a way to make default tenant settings, or "seed" tenant settings when creating a new one. Especially anything in the administration menu: roles, permissions, visual styles, general settings.

Even better would be if there would be a way to transfer some of these administrated by the host and not the tenant - for example, visual settings would be an important such.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    I think you can initialize the tenant settings in the EntityFrameworkCore(https://github.com/aspnetzero/aspnet-zero-core/issues/1628).

    Or write the code to modify the tenant settings in the method of creating a tenant (CreateWithAdminUserAsync)https://aspnetboilerplate.com/Pages/Documents/Setting-Management#changing-settings