Group claims in roles ASP.Net Identity

2.5k views Asked by At

I'd like to make a system with granular permissions so Is there a way to make groups of claims and assign them to a role so when a user gets a role it gets all the claims? Is it possible to create groups of claims or am I misunderstanding something?

I'm failling to find the purpose of claims. This could be done using groups with various roles and the roles are gonna be the permissions, right? This is the way I should do it? Since roles per se are claims.

1

There are 1 answers

1
Manoj Kumar Bisht On BEST ANSWER

Following steps can solve your problem

  1. Create granular level of roles...typically for each action

  2. Group them up into GroupRoles...so that admin can easily manage it

  3. Add individual level claims to user for specific permission

Some good examples of the same are below

Hope this solves your problem