0

Entity has a custom field based on which, some security roles should have access to records of that type and some should not.

Javascript can be used to close form after checking roles. But I'm looking for back end solution that will disabled access to this records in workflows and searches too.

For example, product should viewable by everyone if manufacturer is our company and only by Competitor Products Specialist if other.

2 Answers 2

0

You might be able to write a plugin that would automatically share the record with the appropriate Users/Teams. When somebody updates that field, the plugin would run and share/unshare the record according to your business logic.

Disclaimer: I haven't actually tried this before, and there may be performance issues if you have lots of records (and therefore lots of sharing records).

1
  • Problem is I needed restrictive mechanism not vise versa.
    – skfd
    Feb 15, 2012 at 23:20
0

I ended up writing the plugin that works on pre-Retrieve event and modifies retrieve query by adding additinal filter by field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.