Being fairly new to the MVC Framework, I am trying to create my own membership provider that can support the concept of groups or departments.
I need to assign each user to belong to one (and only one) of several groups — each group (and its members) can only view records belonging to it — identified by GroupId.
I need to somehow save this groupid in the user profile so that when they log in and call (for example) the Index method on the controller, groupid is passed, which then filters the records that the user can see.
I'm sure this is a simple approach, but I seem to have a mental block.
Any insight would be helpful (and probably vaguely simple!)
Roger
source
share