Click here to Skip to main content
15,908,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I apologize in advance if my query does not sound clear to you.

I know that I able to create roles in ASP.NET Identity.
The problem I am encountering now is that I am looking for a way to create a multi tier administration model.

To simplify things, assuming that there are three groups, A, B and C.
And all three groups have their own admins who handle their own groups.
Group A is also in charge of both Group B and C.
I am looking for a way for Group A's administrator to gain rights to B and C and also to expand the model to as deep and wide as possible.

What I have tried:

I am currently experimenting at manual ways of storing the hierarchy in another table and to do a lookup and then recursively keep adding the rights whenever there is an update.
Posted
Updated 19-Nov-18 10:06am

1 solution

There is no out of the box system that you can use, but ASP.NET Identity 2 is pretty much customizable. In order for you to have your own tables, you have to create a custom DbContext or override the IdentityDbContext. That is the starting point, where the tables being used by the Identity 2 are set.

Here's a great article that might help you get started: ASP.NET Identity 2.0: Implementing Group-Based Permissions Management | John Atten[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900