I use module zero template, version 1.2. In create tenant from TenantAppService, with admin username different than "admin", it throw error: "There is no entity User with id = xx".
View in source code, I found error cause by: CheckErrors(await UserManager.AddToRoleAsync(adminUser.Id, adminRole.Name)); (TenantAppService)
In UserManager.AddToRoleAsync, it call UpdateAsync --> GetOldUserNameAsync because username is not equal "admin" --> AbpStore.GetUserNameFromDatabaseAsync.
In AbpStore.GetUserNameFromDatabaseAsync, it begin new UnitOfWork with tenantId from AbpSession. And _userRepository.GetAsync(userId) throw error.
It is new code is updated in v 1.2.