Base solution for your next web application
Open Closed

Multiple Tenant Types #7078


User avatar
0
TeamBliss created

Hello Asp.Net Zero Support.

I love this product and super stoked to be digging in.

Our SaaS product is going to be used to connect 3 types of entities together. We are the hub in which we bring all three of these entities together to do business with each other.

We have Marketing Companies, Doctor Groups, and Suppliers. Essentially, we have 3 different tentant types.

A MARKETING COMPANY uploads patients for their partnered DOCTOR GROUP to visit via tele conferencing. The DOCTOR GROUP then sends the prescription to their partnered SUPPLIER to fullfill. Each tenant type will perform completely different functions.

I wanted to know the best approach to this.

I didnt think using one main application with different user roles seemed like the best approach to keeping things cleanly seperated. Instead I essentially wanted to have TenantTypes (Ex: MARKETING COMPANY) that could utilize Roles and permissing (Ex: MARKETING SPECIALIST and MARKETING ADMIN ) or each of the three entities as described above.

Is there any kind of documentation that could provide a little more guidance on this?

Thank you!


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

    I suggest implementing TenantRoles in a similar way to OrganizationUnitRoles for this. You can refer to the OrganizationUnitRoles PR: aspnetboilerplate/aspnetboilerplate#4242

    Also, use static roles that cannot be deleted. You can refer to the Roles documentation: https://aspnetboilerplate.com/Pages/Documents/Zero/Role-Management#dynamic-vs-static-roles