Creating an admin user account in CMS 12 for ASP.NET Identity

  • Updated
Description

Here are steps to add an admin account in CMS 12 when ASP.NET Identity is used. 

Steps
  1. Ensure AddAdminUserRegistration in the startup class. 
    services
    .AddCmsAspNetIdentity<ApplicationUser>()
    .AddCms()
    .AddAdminUserRegistration()
    .AddEmbeddedLocalization<Startup>();
    }
  2. Browse to https://yoursite.com/util/register

  3. If that fails, you may try this. 
    .AddAdminUserRegistration(opt => { opt.Behavior = EPiServer.Cms.Shell.UI.RegisterAdminUserBehaviors.Enabled; });