Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,
I'm trying to develop a MIS software(for my information & as a preparation of diploma project).
Here I need to implement user roles. just like windows user groups.(Administrators have full access, power users can install software, users can only use what they have in PC, gusts can only use PC. etc..)
Here I have no idea of how to manage software users with their capabilities.
Please Advise.
Posted
Comments
Nathan Minier 11-Aug-14 9:52am    
Assuming that your MIS is loaded in a Windows environment (as suggested by the C# tag) then I would suggest that you use the tools already on hand: ie your LDAP or machine SAM. Define roles in your software, assign roles to groups, and assign users to groups based on least privilege. This has the benefit of using the same Authentication/Authorization as the system that is executing the request and releases you from having to track users and groups.

Software role management has many implementation possibilities. I like defining capabilities in derived user objects and calling them as delegates or events from my execution path, but you can do something as basic as switches at key decision points if you really want to. It all depends on how decoupled you want or need to be.

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