How to restrict a Security Role accessing certain records(Account) based on its related record Option Set field value.
Example:
We have 2 entities Account and Contact.
Where contact is a lookup on Account entity.
Need to restrict Users having a specific Security Role accessing Account records when contact (lookup field ) Optionset field set to YES (field Confidential = YES ).
Ideally, Security role assigned to user have Org level Read Access to Account entity.
Any help on this would be great.
Thank you