ASP.NET - How to implement role,user,usergroups

Asked By rahul patil on 12-Aug-12 05:00 AM
i want to build a module where i create users, Create Usergoups,Create Roles,create permissions, Assign Usergoup ans Role to user, ,assign Role to usergroup  and user, assign permission to role,


can this idea is useful if i want to build a module that is used for security purpose for any application web or windows and how to implement this can any one have idea about this so send me 
Thanks
Peter Bromberg replied to rahul patil on 12-Aug-12 08:21 AM
The .NET Framework already has the Membership, Role and Profile providers built in, along with the controls that work with them. You can find examples and walkthroughs at a number of places including on this site.