The first matching ACL found is enforced.
Configure the ACL so that the Payroll Manager group has full access to payroll data with create, read, update, and delete permissions, while the Payroll User group has read-only access and is restricted from creating, updating, or deleting payroll records.
Create two roles ‘payroll_manager’ and ‘payroll_user’ and two groups Payroll Manager, payroll User.
Assign payroll_user role to Payroll User group and assign payroll_manager role to payroll manager group and assign some users to both groups.
Click on profile and Elevate role to “Security admin” to access the ACL.
Create ACL with read access to payroll user table. None and give roles “payroll_user” and “payroll_manager”.
Or Navigate to Payroll table and scroll down to access control related list.
Impersonate to user with “payroll_user” role.
Open payroll record can read record but cannot update create and delete record.
Because we have given only read access for user group so user can only see records.
Create the ACL record with create, write, delete access with payroll manager role.
Manager can access record create, read and write on record.
Now Create * access to payroll table for read access.
Impersonate with user having payroll_user role Payroll. open payroll record and you will see payroll table fields but not data.
Implemented role-based access control for the payroll system. The Payroll Manager role was granted full CRUD (create, read, update, delete) access to payroll records, while the Payroll User role was restricted to read-only access. This configuration secures the access for valid user.