Base solution for your next web application
Open Closed

Self Add Tenant #804


User avatar
0
andmattia created

In module zero is not a standard option to add a new user with new tenant?

mat

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Why not use UserManager.CreateAsync method?

    Or you want to create a new tenant with an admin user? If so, startup template does it.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    andmattia created

    In registration form if tenant doesn't existes create it and add admin.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    hikalkan created
    Support Team

    Then you can use TenantAppService.Create method. It creates a tenant with admin user with all available permissions.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)