Base solution for your next web application
Open Closed

Assign user to multiple tenants #11890


User avatar
0
ShaneFryer4184 created

Hi, is there a way that a user can be assigned to multiple tenants so that they can switch between tenants? Also, is there any limit to the nubmer of tenants; perforamnce issues over a certain number, etc.?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    is there a way that a user can be assigned to multiple tenants so that they can switch between tenants?

    Unfortunately this is not possible.

    Also, is there any limit to the nubmer of tenants; perforamnce issues over a certain number, etc.?

    No. App itself doesn't have a limit. Having huge number of tenants will not affect your app's performance because when a user is logged in as a Tenant user, only 1 tenant is selected. If a user logs in as a host user, tenants will be displayed on Tenant page with a limited number for each page.

  • User Avatar
    0
    ShaneFryer4184 created

    Hi, thanks for the quick reply. With regards to not being able to assign a user to multiple tennats, do you know if this was done intentionally to not allow this or if it was just never a requirement?

    The reason I ask is that if I need to modify the project to allow this it would be good to understand if there was some fundamental limitation that prevented this from being possible, before I start developing the function.

  • User Avatar
    0
    ShaneFryer4184 created

    Hi,

    is there a way that a user can be assigned to multiple tenants so that they can switch between tenants?

    Unfortunately this is not possible.

    Also, is there any limit to the nubmer of tenants; perforamnce issues over a certain number, etc.?

    No. App itself doesn't have a limit. Having huge number of tenants will not affect your app's performance because when a user is logged in as a Tenant user, only 1 tenant is selected. If a user logs in as a host user, tenants will be displayed on Tenant page with a limited number for each page.

    Hi, thanks for the quick reply. With regards to not being able to assign a user to multiple tennats, do you know if this was done intentionally to not allow this or if it was just never a requirement?

    The reason I ask is that if I need to modify the project to allow this it would be good to understand if there was some fundamental limitation that prevented this from being possible, before I start developing the function.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Yes, this is designed that way on purpose. In a multi-tenant design, tenants and their data should be totally separated and shouldn't be related to each other.

    However, if you want to implement this, you can create a new table (UserTenants for example) and allow user to select a Tenant during the login process.