Subject Re: [IBO] Record Level Security
Author Helen Borrie
At 11:52 PM 30/05/2003 +0000, you wrote:
>I want to have a table of employees and a table of record numbers
>that they do or don't have access to and when they run a query I
>don't want them to see the records that they shouldn't.

The relational model can help you a lot in this respect. You need to
include some kind of flag column in the table, that corresponds to a flag
in another table that ties a user to a permission level. For more
flexibility, if you need to make permissions conditional, you can use two
flag columns. As someone else suggested, the most elegant and bombproof
way to engineer this will be to use a stored procedure.

>Eventually I don't want them to see or be able to update ceartain
>fields either but for now just the ability to not see ceartain
>records when they run queries.

This one has quite a view options, including the use of views for
protecting columns.

It would not be a wise idea to provide "free-range" querying facilities for
a database that contains confidential information.

Helen