volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

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?

#188501
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.

#189707
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):

https://www.epinova.no/en/blog/handling-episerver-users-and-roles-reference-list/#create_roles

#190123
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.