asp.net mvc - Add Group Membership to Custom Membership/Roles provider -


Being quite new to the MVC framework, I am trying to establish a custom membership provider that can support the concept of groups or departments.

"post-text" itemprop = "text"

I need to allocate each user in relation to one (and only one) of several groups - each group (and its members) can see only those records which are related to it - Group ID Recognized by

I somehow need to store this group in the user profile so that when they are logged in and call the index method on the controller, then the group is passed to the address, See who the user can do.

I'm sure this is a straightforward approach, but I find a mental block with it.

Any insight will be helpful (and possibly embarrassing!)

Roger

I wonder if you can use" roles "instead of" groups "permissions can be easily controlled with roles. Typically, a role is something like admin, manager, superuser, user, guest. But can you play a role for your goals?

Here's how to use roles in the membership provider: You can find a lot by searching for "roles" rather than "group".

And if you do not have a membership source code as a reference, you can download it from this page and see how the code for the roles in the basic version.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -