Business Requirement HR users can access all Employee records. Managers should only see Employees in their own Location.
2 risposte
Hi @Rohit .
Restriction Rules alone won’t satisfy this requirement, as they can only restrict existing access, not grant access.
A better approach would be:
- Set OWD to Private for Employee.
- Give HR users access to all Employee records using appropriate sharing or View All permission.
- Give Managers access to employees in their own Location using criteria-based sharing or Apex Managed Sharing for dynamic requirements.
Use sharing mechanisms to grant access, and Restriction Rules only when additional record-level restriction is required.
Hope This Helps!!