I accidentally deleted the Default Tenant and its associated accounts (admin@defaulttenant.com and admin@aspnetzero.com) from the Tenant List in the admin UI of my ASP.NET Zero application. As a result, I am unable to log in using these admin accounts.
Could you please assist me in restoring the Default Tenant and reactivating these admin accounts? I believe the records might still exist in the database as soft-deleted entries, but I would appreciate your guidance in resolving this issue.
Here are the key details of my setup:
Admin Accounts: admin@defaulttenant.com, admin@aspnetzero.com
Affected Tenant: Default (TenancyName: Default)
Edition: [Your ASP.NET Zero Edition (e.g., Angular + .NET Core)]
If additional details are needed, please let me know. Thank you for your assistance, and I look forward to your support.
Thanks,
Val
4 Answer(s)
-
0
Hi @ValCQ
Can you run your *.Migrator project? This will run the Seed mechanism. Thus, the Tenant information that comes by default will be added to the database. If the default information is disabled in the database, you can manually delete it from the database and then run the Seed structure with the *.Migrator project.
-
0
Thank you for your response.
To clarify, the admin@defaulttenant.com account is used as a clone to copy content to newly created tenants. Will its deletion affect the cloning functionality or any associated data?
Any option to restore without affecting existing content?
-
0
Also, since the account was removed from the UI portal or tenant edition list, can you confirm if this is a soft delete or a permanent (hard) deletion? Is there an easy way to restore it directly from the database?
Looking forward to your guidance.
-
0
Hi @ValCQ
This is Soft Delete. If the data you delete is related to different tables, the others may be affected due to the dependency setting. Here you can mark the data you deleted as active again. You can do this manually from the database. You can change the
IsDeleted
value toFalse
.