Hi!
I'm working on this project that an admin user can create some User's Groups that will be working as the project roles.
So, the admin will create a User Group named "SuperAdmin" and will select in a dropdownlist the users that will be part of this group.
I've worked before in a solution using RoleProvider and using Controller's Attibutes, but in that occasion I created all the groups and set manually in the Controller, like:
[Access(Roles = "SuperAdmin")]
public UserController : Controller
{
}
In the example above I know that the group is named "SuperAdmin". But, now, in this new project, I don't know what groups an admin user will create.
So how can I get all roles that a user will be allowed to access dynamically?
Thanks!