We help IT Professionals succeed at work.
Get Started

ACL limiting/filtering DB search results on a record-by-record basis

Last Modified: 2020-04-17
I need to implement an solution that implements a search against a table where each record can have a different ACL on it.  By this I mean the typical definition of an ACL, which is a list of users/groups each of which has a permission level (without the ACL).

The most critical need is to apply this during search where we need to limit visibility of records in search results to users/groups in the ACL that have at least visibility permissions.  We can have something complex during use of the record (modifications, etc.), but search is problematic.

Is there an approach to this that is commonly used?  I have to avoid DB product specific functionality if possible, but understand that's probably not possible.

The initial use would be for a MongoDB application, so the connections to the DB would be with a single account.  We would know the user's though through login and tokens.  MongoDB is the priority at this time though.
Watch Question
Technical Architect
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE