Base solution for your next web application
Open Closed

how to give permissions to tenants #7857


User avatar
0
wcdagency created

hello

I created many entities in host account. I created a tenant then created user for this tenant. when I login to system, left menu is empty. but I already created entities in host. how could I give permissions for for the ones I created in host account to make them visible in tenant account?


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    I created many entities in host account.

    Do these entities support multi-tenancy? In other words, do these entities implement the IMustHaveTenant or IMayHaveTenant interface?

  • User Avatar
    0
    wcdagency created

    Do these entities support multi-tenancy? yes

  • User Avatar
    0
    maliming created
    Support Team

    Entities are isolated between Host and Tenant and Tenant and Tenant.

    please check the doc: Switching Between Host and Tenants (https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#switching-between-host-and-tenants)

  • User Avatar
    0
    wcdagency created

    ok , but, still I could not understand how to give permission to tenants from host to tenants.

  • User Avatar
    0
    maliming created
    Support Team

    Maybe I don't understand what you mean correctly. If you want to grant permissions to a user or role under a tenant, you can log in to the tenant's administrator and assign permissions.

    There are commin permissions(For both of tenants and host), tenant-specific permissions, Host-specific permissions. Host-specific permissions cannot be assigned to tenants, and vice versa..