Base solution for your next web application
Open Closed

HOST access to tenants data.. #3363


User avatar
0
scharada created

Why does the host not see all users/roles/OU from all tenants ? isn't it supposed to ? otherwise why is it host when it behaves like a tenant ?

what am i missing here ?


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

    Hi @scharada,

    We didn't design it like this, we think that Host is responsible to create and manage tenants but as you pointed out, host also can impersonate a tenant user and act like that user.

    Also your suggestion has technical difficulties in DB per tenant architecture. Think that each tenant data is stored in a seperate database. In that scenario, it is hard to display all tenant data in a single page for host.

    Thanks.

  • User Avatar
    0
    scharada created

    in one of my questions before deciding to use the framework, i have asked how to access to all tenants data and i was told host can (id = 0 in method calls) ...

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry, maybe my previous information was incomplete. You can access all tenant's data but it will not work on DB per tenant architecture. If you are using single DB, then it will work.

    See <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Data-Filters#DocDisableFilters">https://aspnetboilerplate.com/Pages/Doc ... bleFilters</a>. Especially <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Data-Filters#about-multi-tenancy">https://aspnetboilerplate.com/Pages/Doc ... ti-tenancy</a>.

    in one of my questions before deciding to use the framework, i have asked how to access to all tenants data and i was told host can (id = 0 in method calls) ...

    I couldn't find our conversation regarding to this. Was it in an email or was it on this forum ? If it is on the forum, we would like to fix it if there is wrong information.

    Thanks.