Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

how to get currentuser's tenantId? #7851


User avatar
0
wcdagency created

Hello

how to get currentuser's tenantId?


4 Answer(s)
  • User Avatar
    0
    rvanwoezik created

    AbpSession.TenantId

  • User Avatar
    0
    yekalkan created

    See https://aspnetboilerplate.com/Pages/Documents/Abp-Session#session-properties

  • User Avatar
    0
    wcdagency created

    it is null .

  • User Avatar
    0
    yekalkan created

    That means you are logged in as a host user, not as a tenant user.

    from docs:

    TenantId: Id of the current tenant or null if there is no current tenant (in case of user has not logged in or he is a host user).