Open Closed

Admin user not added when creating new tenant #7271


User avatar
0
uri@busoft.co.il created
  • ABP Framework version: v7.3.2
  • UI Type: MVC
  • Database System: SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no

I migrated my solution to commercial project. like the guide here Using tenantAppService.CreateAsync(newTenant) creates a new tenant, but admin user doesnt added. Surprisingly, this problem doesnt occur in the host project, only in other modules within the solution. What could be causing this problem ?


3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    Please check this similar issue https://support.abp.io/QA/Questions/2240/Admin-user-not-created-when-tenant-is-created#answer-b1212748-b6fe-4a72-da45-3a0097c13b7a

    Thanks

  • User Avatar
    0
    uri@busoft.co.il created

    Thank you for your response,

    I added the TenantDatabaseMigrationHandler class to my host project. When I add a tenant from the tenantsManagement screen, the HandleEventAsync function is called. However, when I use tenantAppService.CreateAsync(newTenant) in another module, that function isnt called.

    What could be the solution to this issue?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    Have you been able to check in the database, whether your newly created tenant exists? Are you getting any errors or logs please do share if any.

    Thanks

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11