Base solution for your next web application
Open Closed

Is it ok to override the UserAccountSynchronizer to not save the UserAccount data? #11371


User avatar
0
JapNolt created

I saw here: https://support.aspnetzero.com/QA/Questions/7845/UserAccount-table-purpose-Multitenancy that it looks like the UserAccounts table is used just for the linked accounts feature. I was wondering if we don't want that feature can we override the Abp.Authorization.Users.UserAccountSynchronizer and simply not save that data there? We are wanting to use a different database for a tenant and they don't want that data outside their database.


3 Answer(s)
  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @japnolt

    The UserAccount table is also used for batch notification. https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/Notifications/SendNotificationToAllUsersBackgroundJob.cs

  • User Avatar
    0
    JapNolt created

    If I don't care about using that feature either is it ok to override the UserAccountSynchronizer? Or is there something else I an do to not save that data?

  • User Avatar
    1
    ismcagdas created
    Support Team

    Hi @japnolt

    Yes, you can do this. This table is a way of allowing a central point of access for all users across all tenants even if they use a different database. But, if that's not a problem for you, you can replace it with an empty class.