Open Closed

Single Identity table for all the tenants, help or suggest! #6860


User avatar
0
jaykishan created
  • ABP Framework version: v8.0.4
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Is it possible to have single table for abpusers and they can be part of multiple tenants where there profile will remain same and few user documents.

abpusers table will exist only in the main db user can login with subdomain of tenant, where it can shared or it's own tenant's personal db in the same server linked accounts switch the user to the other tenants (At the moment with subdomain tenants it is not working, but non-sub-domain tenants it is working)

Is it achievable in abpframework, I know I have to write custom, but where to change the code or start, it will be helpful if you can suggest?


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    ABP supports module-independent database

    You can set the identity database connect string for tenants to use the main DB:

    Configure<AbpDbConnectionOptions>(options =>
    {
        options.Databases.Configure("AbpIdentity", db =>
        {
            db.MappedConnections.Add("AbpIdentity");
        });
    });
    

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38