Could you please advise if it is possible to create a Record rule with the domain that will check if the current user is a member of the specific department (employee_id.department_id)?
For example, I want to provide access to the record to all members of HR and Finance departments.
HR Department id = 10
Finance department id = 15.
So the domain should work as the following: If the current user is a member of department_id 10 or 15 -> then access is provided, else -> prohibited.