Implement multi level tenancy

Hey everyone,

I'm building an application that needs to support two levels of tenancy, and I'm just curious if anyone has done that already?

The first level is that my direct customers can create their accounts, upload their logo, and configure some settings. This is going to be part of the "admin" panel. Every one of these tenants can specify a custom subdomain or add a completely custom domain. They should be able to invite users to their tenant and so on.

A second panel, a white-labeled panel, should be accessible through the specified subdomain for their customers. It should use the brand color and logo that the tenant has added in the admin panel. Users should be able to register an account in this white-labeled panel, manage their resources, but as well create and switch between multiple accounts (the second level of tenancy).

Is this explanation halfway understandable, and has anyone already solved something like that? I'm just looking for some experience reports or best practices.
Was this page helpful?