Excuse the title as this situation is difficult to explain.
Imagine a business with multiple facilities, and each user's roles are directly tied to a facility. Therefore, each user has different permissions for each facility, modeled by the use of a "role". For example, Bob is an Admin for Facility X, therefore can manage users for Facility X. However, Bob is only a EndUser for Facility Y, and can only view static information about Facility Y.
I have two main questions:
- Has anyone been able to model this with Asp.Net Identity 2.0? It seems like I could just add a "FacilityId" column to the User_Role table, but I have ran into issues with this.
- Is this only similar, or is it exactly the same idea as a "multi-tenant" application?