Creating a new user group to allow logins

  • Updated

If you create a new group in Episerver, for example an Editors group because you do not want them to have Publishing permissions like other groups may have, you may run into the issue where members of that group can not log in. 

This is because you need you authorize logins for that group through your Web.config.

In your Web.config file you will find a section similar to this:

 

<location path="EPiServer/CMS/admin">
    <system.web>
      <authorization>
        <allow roles="WebAdmins, Administrators" />
        <deny users="*" />
      </authorization>
    </system.web>
  </location> 

 

In the above example, only members of the WebAdmins and Administrators groups have authorization to login.

If you have created a new group called "Editors" in the CMS, you need to modify the above code snippet like this:

<location path="EPiServer/CMS/admin">
    <system.web>
      <authorization>
        <allow roles="WebAdmins, Administrators, Editors" />
        <deny users="*" />
      </authorization>
    </system.web>
  </location> 

 

Now the users of that group will be able to login to the CMS system.