Vector
Vector

Reputation: 757

Group claims in roles ASP.Net Identity

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.

Upvotes: 3

Views: 2530

Answers (1)

Manoj Kumar Bisht
Manoj Kumar Bisht

Reputation: 24

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

Upvotes: 1

Related Questions