Try our conversational search powered by Generative AI!

VirtualRoles – EPiServer.Security.MappedRole not working


Hi there,

I have test project on my local but virtual mapped roles are not working.


  1. Adding CmsEditors group.
  2. New user assigned to this group creation.
  3. Attempt to login with new user.

Upon login there is no autentification failure so instead of some regular warning (as usual) the login page is returned from application.

If I put CmsEditors as allowed group to location for EPiServer it works. So I suppose the mapping is failing somewhere.

Virtual Roles:



Jul 25, 2018 11:03

Have you created WebEditors, WebAdmins in the CMS groups (If using ASP.NET Identity) and made sure your user is in it?

Jul 25, 2018 11:28

Also it would be good like with all forum posts to list the version of the CMS you're on

Jul 25, 2018 11:29

I can be wrong here, but I understand the mappedrole to be:

  • If an user is in WebEditors, then he/she is in CmsEditors
  • The vice versa is not true, if an user is in CmsEditors, it does not mean they belong to WebEditors. 

I.e. the behavior you are seeing is correct. 

Edited, Jul 25, 2018 11:36

Yes that's what I was going to get at too, the groups in the CMS need to be the Roles not the VirtualRoles.

Jul 25, 2018 11:53
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.