Open Closed

access the multi tenant from api (mobile app) without send Tenant name #3827


User avatar
0
hussein created

If you're creating a bug/problem report, please include the followings:

  • ABP Framework version: v6.0
  • UI type: MVC
  • DB provider: EF Core / sqlserver
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I follow the link in the community about hiding Tenant Switch from an ABP Framework Login page and it works without selecting the tenant from the login now I have a problem accessing the application from an API call (mobile flutter) , I don't want the end user to select the tenant, i just want to resolve the tenant name by his login id as done in the UI-login page I'll appreciate your help with this case thanks in advance


1 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    You can check the default tenant resolvers or you can even write your custom resolvers. https://docs.abp.io/en/abp/latest/Multi-Tenancy#default-tenant-resolvers

    Tenant can be passed from header, querystring, etc. with parameter name __tenant.

    If you want to list all the tenants, you can use tenant-management module endpoints to achieve this.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on June 20, 2025, 11:20