Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

What's the reason for not letting me add the role "Administrators" programatically to a user?


Simple question really, I create users programatically and it goes fine. I can add users, EPiServerProfile properties and all roles except "Administrators". When adding it I get this error -> 

Provider Exception Caught
The role 'Administrators' was not found.

I get it after having checked if the role exists and after that adding it with ->

 Roles.AddUserToRole(userName, role);

I don't need to add the users to this group, I'm just curios. 

May 25, 2015 15:54

Could it be that Administrators is a virtual role?

May 25, 2015 16:07

From what I read here -> you're right. Thanks

May 25, 2015 17:04
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.