Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

please help w/role model 1

Status
Not open for further replies.

CRuser89

Programmer
May 18, 2005
79
US
Hello,

I need to create a role-based ER diagram for a new applicaiton we're developing. Basically the diagram should have roles, privileges, permissions, etc of what a user can and cannot see in the application.

I am using SQL Server 2000. Can someone please point me to where I can see a sample role-based access diagram?

Thanks,
Kathy
 
You will need to develop this pretty much on your own based upon the unique requirements of your application. However, most role-based systems have the following tables set up:

users - stores user account info
users_roles - join table so that multiple users can have the same role, and one user can have multiple roles
roles - stores the role(s) that are linked to the user accounts
roles_permissions - join table to facilitate many-to-many joins between roles and permissions
permissions - stores the name of the permission, with an appropriate flag value (this can be true/false most of the time).

To determine what is visible in the app, you then need to write functions that will see if a certain permissions is connected to the current user, and then display, or not, the sensitive information.

I hope this helps you get in the right direction.

Take Care,
Mike
 
Thank you Mike for takign the time to explain all this to me. It's very helpful...

Thanks again,
Kathy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top