Open Closed

Tenant selection based on username/email #3228


User avatar
0
shobhit created
  • ABP Framework version: v4.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  1. Current process
    1. go to app
    2. navigate to identity page
    3. select tenant
    4. enter username/ email
    5. enter password
    6. login done
  2. New expected process
    1. go to app
    2. navigate to identity page
    3. enter username/email
    4. if username/email matches then populate all tenant. user can select the desired tenant from the list.
    5. if username/email don't match then user can search the tenant. (current way)
    6. enter password
    7. login done

Is it feasible to get done option 2. If yes, then how we can achieve this.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    hi

    You can switch to the Host side, then query all tenants, and then switch to the tenant side to try to match the email/username

    https://docs.abp.io/en/abp/latest/Multi-Tenancy#change-the-current-tenant

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    shobhit created

    Hello Maliming, Thanks. Can you also guide me where i have to make these changes i.e. project and file.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Mainly the account module, because there may be many changes, I suggest you download the source code of the module.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    shobhit created

    Hello maliming, As i am not the expert in ABP features. can you help me out with sample where i have to make changes.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    We provide the source code of the module, you can check it first

    please feedback if you have any problems.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.