Try our conversational search powered by Generative AI!

Episerver user groups


It is possible to create user groups in code on the fly? I have an api end point which returns me a list of permissions. I want to add these permissions to user groups, if they don't already exists, is that possible?

Feb 26, 2018 12:06

It's definitely possible and depends on what kind of authorization providers you are using (old good membership provider, aspnet identiy, etc). just look for code samples in respective docs.

Mar 23, 2018 8:41

I have an old blog post with code examples of how to create and assign roles (user groups) in Episerver's API (note: using Membership Provider):

Apr 03, 2018 9:15
* 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.