Record based security

  • Hi,

    We are currently developing a crm that has the following main tables: client, sales, actions, contacts and employees with up to 4 million records. The db contains several other tables with extra information but these aren't relevant for this problem.

    Clients have sales, contacts and actions. sales and actions can have seperate contacts as well, and contacts can be related to employees in a way.

    Offcourse a security model was implemented but this only provides the option to hide or show all the records of these main tables. Now people noticed that it is a must to let people see for example only companies they created or do sales with.

    The first thing that pops in my head is to create a client_security, sales_security, ... table that contains the employee_id and client_id or sales_id, or ... And add a join with one of these security tables for each select that is executed.

    I wonder (because of the huge amount of data) if there isn't a better way to get this done?

    Feedback or even keywords to find more about this issue via google (record based security really isn't the best description I guess) are most appreciated.

    thx in advance.

  • Davy, check out this white paper: http://www.microsoft.com/technet/prodtechnol/sql/2005/multisec.mspx

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply